Libraryless. Click here for Pure Java version (5158L/28K).
svoid assertSetsEqual(S msg default "", Cl l1, Cl l2) { assertEquals("Set sizes", l(l1), l(l2)); Set set2 = asSet(l2); fOr (O o : l1) if (!contains(set2, o)) fail("Set 2 doesn't contain " + o); Set set1 = asSet(l1); fOr (O o : l2) if (!contains(set1, o)) fail("Set 1 doesn't contain " + o); }
Began life as a copy of #1034809
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034810 |
Snippet name: | assertSetsEqual |
Eternal ID of this version: | #1034810/4 |
Text MD5: | d02e4d3232580ab9bf3c561dcd52635e |
Transpilation MD5: | 823c8f277dd1bf96a4d8fc42ae601954 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-14 19:35:46 |
Source code size: | 336 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 167 / 256 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |