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

10
LINES

< > TinyBrain | #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 + ": " : "") + sfu(y) + " !== " + sfu(x));
  else
    print("OK: " + sfu(x));
}

Author comment

Began life as a copy of #1002936

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1013635
Snippet name: assertSameVerbose
Eternal ID of this version: #1013635/1
Text MD5: f8c5e4bd57d4765eda2e34f9bb6ee4bf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-12 11:01:33
Source code size: 261 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 27 / 32
Referenced in: [show]