Libraryless. Click here for Pure Java version (5266L/29K).
| 1 | svoid assertListsEqual(S msg default "", L l1, L l2) {
 | 
| 2 |   if (l(l1) != l(l2)) fail("Different size: " + l(l1) + "/" + l(l2));
 | 
| 3 | int iDiff = indexOfDifference(l1, l2); | 
| 4 |   if (iDiff < 0) print(msg, "OK (" + l(l1) + ")");
 | 
| 5 | else | 
| 6 |     fail(prependWithColonSpace(msg) + "Error in element " + iDiff + "/" + l(l1) + " (" + get(l1, iDiff) + "/" + get(l2, iDiff) + ")");
 | 
| 7 | } | 
Began life as a copy of #1033286
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033287 | 
| Snippet name: | assertListsEqual | 
| Eternal ID of this version: | #1033287/8 | 
| Text MD5: | 4de5e8fb0911225c815807c63685411f | 
| Transpilation MD5: | f5bd981b5113356bfe54195c9132a8c1 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-10-18 10:04:05 | 
| Source code size: | 366 bytes / 7 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 394 / 502 | 
| Version history: | 7 change(s) | 
| Referenced in: | [show references] |