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

10
LINES

< > BotCompany Repo | #1012689 // assertNotEqualsVerbose

JavaX fragment (include)

1  
static void assertNotEqualsVerbose(O x, O y) {
2  
  assertNotEqualsVerbose((S) null, x, y);
3  
}
4  
5  
static void assertNotEqualsVerbose(S msg, O x, O y) {
6  
  if (eq(x, y))
7  
    fail((msg != null ? msg + ": " : "") + (x));
8  
  else
9  
    print("OK: " + (y) + " != " + (x));
10  
}

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: 431 / 492
Version history: 2 change(s)
Referenced in: [show references]