Libraryless. Click here for Pure Java version (5158L/28K).
| 1 | svoid assertSetsEqual(S msg default "", Cl l1, Cl l2) {
 | 
| 2 |   assertEquals("Set sizes", l(l1), l(l2));
 | 
| 3 | |
| 4 | Set set2 = asSet(l2); | 
| 5 | fOr (O o : l1) | 
| 6 | if (!contains(set2, o)) | 
| 7 |       fail("Set 2 doesn't contain " + o);
 | 
| 8 | Set set1 = asSet(l1); | 
| 9 | fOr (O o : l2) | 
| 10 | if (!contains(set1, o)) | 
| 11 |       fail("Set 1 doesn't contain " + o);
 | 
| 12 | } | 
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: | 384 / 527 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |