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

10
LINES

< > BotCompany Repo | #1013635 // assertSameVerbose

JavaX fragment (include)

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

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

Author comment

Began life as a copy of #1002936

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013635
Snippet name: assertSameVerbose
Eternal ID of this version: #1013635/4
Text MD5: 5093b5a56b81f04bbeb1dac0bd5b42e6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-24 18:08:35
Source code size: 285 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 353 / 402
Version history: 3 change(s)
Referenced in: [show references]