mirror of
https://github.com/AppleCommander/ShrinkItArchive.git
synced 2025-01-02 10:30:17 +00:00
Adding a textual description for failures.
This commit is contained in:
parent
fe1bfde65e
commit
69debc0765
@ -12,7 +12,7 @@ public abstract class TestCaseHelper extends TestCase {
|
||||
* Compare two byte arrays.
|
||||
*/
|
||||
public void assertEquals(byte[] expected, byte[] actual) {
|
||||
assertEquals(expected.length, actual.length);
|
||||
assertEquals("Length mismatch", expected.length, actual.length);
|
||||
for (int i=0; i<expected.length; i++) {
|
||||
assertEquals("Byte mismatch at offset " + i, expected[i], actual[i]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user