Libraryless. Click here for Pure Java version (5023L/28K).
static void assertSame(S msg default "", O a, O b) { if (a != b) fail(joinNemptiesWithColon(msg, a + " != " + b + " (" + identityHash(a) + "/" + identityHash(b) + ")"); } static void assertSame(IF0<S> msg, O a, O b) { if (a != b) fail(joinNemptiesWithColon(msg!, a + " != " + b + " (" + identityHash(a) + "/" + identityHash(b) + ")"); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004787 |
Snippet name: | assertSame - compare with == |
Eternal ID of this version: | #1004787/4 |
Text MD5: | b44a350f71e0268fac5f004883bd2883 |
Transpilation MD5: | 58dfc1d0d0857a024d39c2d9dcdb409a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-24 19:10:11 |
Source code size: | 357 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 600 / 665 |
Version history: | 3 change(s) |
Referenced in: | #1004825 - assertNotSame - compare with != #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1010606 - assertIdentical - synonym of assertSame - compare with == |