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

9
LINES

< > BotCompany Repo | #1004825 // assertNotSame - compare with !=

JavaX fragment (include)

static void assertNotSame(S msg, O a, O b) {
  if (a == b)
    fail(msg);
}

static void assertNotSame(O a, O b) {
  if (a == b)
    fail();
}

Author comment

Began life as a copy of #1004787

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004825
Snippet name: assertNotSame - compare with !=
Eternal ID of this version: #1004825/1
Text MD5: 983de7e655655b24fd71e865dec12a1a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-02 16:49:51
Source code size: 150 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 490 / 508
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010618 - assertNotIdentical - synonym of assertNotSame - compare with !=