Transpiled version (9345L) is out of date.
svoid test_structure_shouldIncludeField() { new structure_Data d; d.shouldIncludeField = field -> { S c = shortClassName(field.getDeclaringClass()); S f = field.getName(); bool shouldInclude = !(eq(c, "Pair") && eq(f, "a")); printVars("shouldIncludeField", +c, +f, +shouldInclude); ret shouldInclude; }; S s = structure(pair(1, 2), d); assertEqualsVerbose("Pair(b=2)", s); }
Began life as a copy of #1034647
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035330 |
| Snippet name: | test_structure_shouldIncludeField |
| Eternal ID of this version: | #1035330/3 |
| Text MD5: | 6c5ee576e7dc70f8abf35ac0099d4ed0 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-05-01 16:15:48 |
| Source code size: | 419 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 423 / 563 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1035332 - test_structure_skipDefaultValues |