Skip to content

Commit

Permalink
Merge pull request #121 from khbminus/khbminus/disable-null-values
Browse files Browse the repository at this point in the history
Changed tests for #120
  • Loading branch information
AbdullinAM authored Aug 22, 2024
2 parents 18b16fb + 47572a7 commit f8c09d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class DisableNullsTest : ConcolicTest("do-not-generate-nulls") {
}
@Test
fun boxedArrayWithoutNullsTest() {
assertCoverage(cm["org/vorpal/research/kex/test/nullability/BoxedArrayNulls"], 20.0 / 24.0, eps = 0.1)
assertCoverage(cm["org/vorpal/research/kex/test/nullability/BoxedArrayNulls"], 26.0 / 30.0, eps = 0.1)
}
@Test
fun listWithoutNullsTest() {
assertCoverage(cm["org/vorpal/research/kex/test/nullability/ListNulls"], 20.0 / 24.0, eps = 0.1)
assertCoverage(cm["org/vorpal/research/kex/test/nullability/ListNulls"], 26.0 / 30.0, eps = 0.1)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ int function(Integer[] x) {
if (x == null) {
return -1;
}
if (x.length > 10) {
return 11;
}
for (int i = 0; i < x.length; i++) {
if (x[i] == null) {
return i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ int function(List<Integer> x) {
if (x == null) {
return -1;
}
if (x.size() > 10) {
return 11;
}
for (int i = 0; i < x.size(); i++) {
if (x.get(i) == null) {
return i;
Expand Down

0 comments on commit f8c09d8

Please sign in to comment.