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

23
LINES

< > BotCompany Repo | #1012221 // assertTripleEqicVerbose

JavaX fragment (include)

static void assertTripleEqicVerbose(T3<S> x, T3<S> y) {
  assertEqualsVerbose((S) null, x, y);
}

static void assertTripleEqicVerbose(S msg, T3<S> x, T3<S> y) {
  if (!tripleEqic(x, y))
    fail((msg != null ? msg + ": " : "") + ai_renderTriple(y) + " != " + ai_renderTriple(x));
  else
    print("OK: " + ai_renderTriple(x));
}

ifclass Scorer
static void assertTripleEqicVerbose(Scorer scorer, T3<S> x, T3<S> y) {
  if (!tripleEqic(x, y)) {
    printIndent(ai_renderTriple(x) + " << wanted");
    printIndent(ai_renderTriple(y) + " << have");
    scorer.add(false);
  } else {
    print("OK: " + ai_renderTriple(x));
    scorer.add(true);
  }
}
endif

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: #1012221
Snippet name: assertTripleEqicVerbose
Eternal ID of this version: #1012221/6
Text MD5: 7c8d463e37696038189eb0d3662459a5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-24 11:52:53
Source code size: 674 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 472 / 493
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1012224 - assertTripleEqicVerbose_multi