File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/test/java/gr/geompokon/bitarray Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ void initArrays(int noOfElements) {
63
63
* Asserts that the two lists have the same exact contents
64
64
*/
65
65
void myAssertSameArrays () {
66
- assertEquals (boolArray , bitArray );
66
+ for (int i = 0 ; i < boolArray .size (); i ++) {
67
+ assertEquals (boolArray .get (i ), bitArray .get (i ));
68
+ }
67
69
}
68
70
69
71
/**
Original file line number Diff line number Diff line change @@ -59,10 +59,12 @@ void initArrays(int noOfElements) {
59
59
}
60
60
61
61
/**
62
- * Asserts that the two arrays have the exact same contents
62
+ * Asserts that the two lists have the same exact contents
63
63
*/
64
64
void myAssertSameArrays () {
65
- assertEquals (boolArray , bitArray );
65
+ for (int i = 0 ; i < boolArray .size (); i ++) {
66
+ assertEquals (boolArray .get (i ), bitArray .get (i ));
67
+ }
66
68
}
67
69
68
70
/**
You can’t perform that action at this time.
0 commit comments