mirror of
https://github.com/AppleCommander/ShrinkItArchive.git
synced 2025-01-03 01:30:42 +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.
|
* Compare two byte arrays.
|
||||||
*/
|
*/
|
||||||
public void assertEquals(byte[] expected, byte[] actual) {
|
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++) {
|
for (int i=0; i<expected.length; i++) {
|
||||||
assertEquals("Byte mismatch at offset " + i, expected[i], actual[i]);
|
assertEquals("Byte mismatch at offset " + i, expected[i], actual[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user