Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1017828 // assertEqualsVerbose_match - use match()

JavaX fragment (include)

static S assertEqualsVerbose_match(S x, S y) {
  assertEqualsVerbose_match((S) null, x, y);
  ret y;
}

static S assertEqualsVerbose_match(S msg, S x, S y) {
  if (!match(x, y)) {
    fail((msg != null ? msg + ": " : "") + quote(y) + " != " + quote(x));
  } else
    print("OK: " + quote(x));
  ret y;
}

Author comment

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: 339 / 383
Referenced in: [show references]