1 | static S assertEqualsVerbose_match(S x, S y) { |
2 | assertEqualsVerbose_match((S) null, x, y); |
3 | ret y; |
4 | } |
5 | |
6 | static S assertEqualsVerbose_match(S msg, S x, S y) { |
7 | if (!match(x, y)) { |
8 | fail((msg != null ? msg + ": " : "") + quote(y) + " != " + quote(x)); |
9 | } else |
10 | print("OK: " + quote(x)); |
11 | ret y; |
12 | } |
Began life as a copy of #1002936
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017828 |
Snippet name: | assertEqualsVerbose_match - use match() |
Eternal ID of this version: | #1017828/1 |
Text MD5: | 145cc1e3c7d5714920dc2d269cf22c60 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-15 14:47:01 |
Source code size: | 316 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 340 / 384 |
Referenced in: | [show references] |