Libraryless. Click here for Pure Java version (2477L/16K).
sS assertEqualsVerboseIC(S x, S y) { assertEqualsVerboseIC((S) null, x, y); ret y; } sS assertEqualsVerboseIC(S msg, S x, S y) { if (!eqic(x, y)) fail((msg != null ? msg + ": " : "") + y + " != " + x); else print("OK: " + x); ret y; } ifclass Scorer static void assertEqualsVerboseIC(Scorer scorer, S x, S y) { if (scorer == null) ret with assertEqualsVerboseIC(x, y); if (!eqic(x, y)) { print(y + " != " + x); scorer.add(false); } else { print("OK: " + x); scorer.add(true); } } static void assertEqualsVerboseIC(Scorer scorer, S msg, S x, S y) { if (scorer == null) ret with assertEqualsVerboseIC(x, y); if (!eqic(x, y)) { print(msg + " => " + y + " != " + x); scorer.add(false); } else { print("OK: " + msg + " => " + x); scorer.add(true); } } endif
Began life as a copy of #1002936
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1023082 |
Snippet name: | assertEqualsVerboseIC |
Eternal ID of this version: | #1023082/4 |
Text MD5: | df9eaf913345c3c639b532d07a32323e |
Transpilation MD5: | a1093cd1b92419f6c56fb0e89d93801c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-04-23 12:52:02 |
Source code size: | 856 bytes / 36 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 395 / 502 |
Version history: | 3 change(s) |
Referenced in: | [show references] |