Skip to content

Commit

Permalink
Changed error message comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
cogmission committed Oct 7, 2016
1 parent 38912b0 commit debcefb
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ private void doTestBackingStoreAndSliceAccess(AbstractSparseBinaryMatrix sm) {
sm.getSlice(0, 4);
fail();
} catch (Exception e) {
assertEquals("This method only returns the array holding the specified index: " +
Arrays.toString(new int[]{0, 4}), e.getMessage());
assertEquals("This method only returns the array holding the specified maximum index: " +
Arrays.toString(sm.getDimensions()), e.getMessage());
}
}

Expand Down Expand Up @@ -218,12 +218,11 @@ private void doTestBackingStoreAndSliceAccessManyDimensions(AbstractSparseBinary
}
}
}

int[] slice = (int[])sm.getSlice(4, 4);
for (int i = 0; i < 5; i++) {
assertEquals(1, sm.getTrueCount(i));
}

int[] slice = (int[])sm.getSlice(4, 4);
System.out.println("slice:" + ArrayUtils.intArrayToString(slice));
assertEquals(1, slice[4]);

/*update first row to true, other to false*/
Expand Down

0 comments on commit debcefb

Please sign in to comment.