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

12
LINES

< > BotCompany Repo | #1017849 // nlLogic_collectCheckingLog

JavaX fragment (include)

svoid nlLogic_collectCheckingLog(NLLogicChecker_v2 c, final LS log) {
  /*c.onChecking = voidfunc(O o, NLLogicChecker_v2.Matching m) {
    pcall { log.add("Checking: " + o + " with " + sfu(m.matches)); }
  };*/
  
  c.onChecked = voidfunc(O o, NLLogicChecker_v2.Matching m, O result) {
    pcall { 
      S status = isTrue(result) ? "OK" : isFalse(result) ? "FAIL" : str(result);
      log.add(status + ": " + o + " with " + sfu(m.matches));
    }
  };
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017849
Snippet name: nlLogic_collectCheckingLog
Eternal ID of this version: #1017849/5
Text MD5: e91e488a0246b4e22763b0df3b33b519
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-18 23:17:23
Source code size: 465 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 372
Version history: 4 change(s)
Referenced in: [show references]