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

19
LINES

< > BotCompany Repo | #1022837 // test_AI_DatesBot

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7488L/50K).

static SS test_AI_DatesBot_entries = parseDoubleRightArrowLinkedHashMap([[
  first of april => 2019/04/01
  3rd of april => 2019/04/03
  what about the second of march => 2019/03/02
  september 12th => 2019/09/12
]]);

static Scorer test_AI_DatesBot() {
  AI_DatesBot bot = nu AI_DatesBot(now := parseYMD("2019/01/02"));
  print(test_AI_DatesBot_entries);
  new Scorer scorer;
  for (S in, S output : test_AI_DatesBot_entries) {
    new LS out;
    bot.say = vfAddToCollection(out);
    bot.addInput(in);
    assertEqualsVerbose(scorer, ll(output), out);
  }
  ret print(scorer);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022837
Snippet name: test_AI_DatesBot
Eternal ID of this version: #1022837/8
Text MD5: 10a126728b8a4c9858a87d766b9cbcd4
Transpilation MD5: 585cde0dd8182b16b1937843c60e03ef
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-10 00:20:36
Source code size: 599 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 302
Version history: 7 change(s)
Referenced in: [show references]