Libraryless. Click here for Pure Java version (5023L/28K).
1 | static void assertSame(S msg default "", O a, O b) { |
2 | if (a != b) |
3 | fail(joinNemptiesWithColon(msg, a + " != " + b + " (" + identityHash(a) + "/" + identityHash(b) + ")"); |
4 | } |
5 | |
6 | static void assertSame(IF0<S> msg, O a, O b) { |
7 | if (a != b) |
8 | fail(joinNemptiesWithColon(msg!, a + " != " + b + " (" + identityHash(a) + "/" + identityHash(b) + ")"); |
9 | } |
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: | 599 / 664 |
Version history: | 3 change(s) |
Referenced in: | [show references] |