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

8
LINES

< > BotCompany Repo | #1006571 // assertEquals_match - like assertEquals, but use match()

JavaX fragment (include)

static void assertEquals_match(S x, S y) {
  assertEquals_match(null, x, y);
}

static void assertEquals_match(S msg, S x, S y) {
  if (!match(x, y))
    fail((msg != null ? msg + ": " : "") + quote(x) + " != " + quote(y) + " [ic]");
}

Author comment

Began life as a copy of #1006519

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006571
Snippet name: assertEquals_match - like assertEquals, but use match()
Eternal ID of this version: #1006571/1
Text MD5: eab4f8d99905323e0a15938427d63464
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-18 02:35:50
Source code size: 242 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 470 / 472
Referenced in: [show references]