Skip to content

Instantly share code, notes, and snippets.

@bkleinen
Created October 9, 2012 06:44
Show Gist options
  • Save bkleinen/3857021 to your computer and use it in GitHub Desktop.
Save bkleinen/3857021 to your computer and use it in GitHub Desktop.
Info3Ex1aAssertHelper
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