Commit 9036e10
committed
Bug: no assert... in test ArraysTest.testArraysBinarySearchString2
The assert was commented-out because it failed.
The bug was is the test code: no comparator was passed to
Arrays.binarySearch, thus given an undefined result as the array was
not sorted in natural order, but a "user defined" one.1 parent 6df6a98 commit 9036e10
File tree
1 file changed
+7
-4
lines changed- tests/net.sf.j2s.test.junit/src/net/sf/j2s/test/junit
1 file changed
+7
-4
lines changedLines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
0 commit comments