Transpiled version (9345L) is out of date.
1 | svoid test_structure_shouldIncludeField() { |
2 | new structure_Data d; |
3 | d.shouldIncludeField = field -> { |
4 | S c = shortClassName(field.getDeclaringClass()); |
5 | S f = field.getName(); |
6 | bool shouldInclude = !(eq(c, "Pair") && eq(f, "a")); |
7 | printVars("shouldIncludeField", +c, +f, +shouldInclude); |
8 | ret shouldInclude; |
9 | }; |
10 | |
11 | S s = structure(pair(1, 2), d); |
12 | assertEqualsVerbose("Pair(b=2)", s); |
13 | } |
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: | 178 / 272 |
Version history: | 2 change(s) |
Referenced in: | [show references] |