Created
October 9, 2012 06:44
-
-
Save bkleinen/3857021 to your computer and use it in GitHub Desktop.
Info3Ex1aAssertHelper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void assertListShouldBe(Node list, String[] expected) { | |
for (int i = 0; i < expected.length; i++) { | |
assertEquals("element no " + i + " ", expected[i], list.data); | |
list = list.next; | |
} | |
assertEquals("should be after last element", null, list); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment