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

9
LINES

< > BotCompany Repo | #1003365 // checkBot

JavaX fragment (include)

static void checkBot(O bot, S in, S out) {
  L<E> poem = parsePoem(in);
  L<E> resp = (L) call(bot, "handle", poem);
  if (eq(out, "fail")) {
    assertEmpty(resp);
  } else {
    assertStartsWith(resp, parsePoem(out));
  }
}

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: #1003365
Snippet name: checkBot
Eternal ID of this version: #1003365/1
Text MD5: 5743aeb37386bbbbc258e5e75c1e0b76
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-06-20 22:06:29
Source code size: 233 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 633 / 599
Referenced in: [show references]