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

10
LINES

< > BotCompany Repo | #1012689 // assertNotEqualsVerbose

JavaX fragment (include)

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

static void assertNotEqualsVerbose(S msg, O x, O y) {
  if (eq(x, y))
    fail((msg != null ? msg + ": " : "") + (x));
  else
    print("OK: " + (y) + " != " + (x));
}

Author comment

Began life as a copy of #1002936

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012689
Snippet name: assertNotEqualsVerbose
Eternal ID of this version: #1012689/3
Text MD5: 2a8e3276581637f8a8fcdbe6dacf287e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-27 14:11:06
Source code size: 268 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 423
Version history: 2 change(s)
Referenced in: [show references]