Libraryless. Click here for Pure Java version (6898L/38K).
srecord TestFunctionValues<A, B>(IF1<A, B> function) { new LPair<A, B> pairs; selfType io(A input, B output) { pairs.add(pair(input, output)); this; } void clear { pairs.clear(); } run { for (p : pairs) testFunctionValue(function, p.a, p.b); print(nTests(pairs) + " OK"); } void runAndClear { run(); clear(); } }
Began life as a copy of #1018444
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034762 |
Snippet name: | TestFunctionValues |
Eternal ID of this version: | #1034762/5 |
Text MD5: | e947c7bfb007511e58d9eea591f24aa7 |
Transpilation MD5: | 966e65ad9ec30a8eb2bf4f6fd87f19a0 |
Author: | stefan |
Category: | javax / testing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-08 07:54:25 |
Source code size: | 400 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 140 / 234 |
Version history: | 4 change(s) |
Referenced in: | [show references] |