Skip to content

Commit

Permalink
Changed tests
Browse files Browse the repository at this point in the history
Changed tests to minify the execution time of the tests
  • Loading branch information
khbminus committed Aug 20, 2024
1 parent 190a8a4 commit 47572a7
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 47572a7

Please sign in to comment.