Libraryless. Click here for Pure Java version (7488L/50K).
1 | static SS test_AI_DatesBot_entries = parseDoubleRightArrowLinkedHashMap([[ |
2 | first of april => 2019/04/01 |
3 | 3rd of april => 2019/04/03 |
4 | what about the second of march => 2019/03/02 |
5 | september 12th => 2019/09/12 |
6 | ]]); |
7 | |
8 | static Scorer test_AI_DatesBot() { |
9 | AI_DatesBot bot = nu AI_DatesBot(now := parseYMD("2019/01/02")); |
10 | print(test_AI_DatesBot_entries); |
11 | new Scorer scorer; |
12 | for (S in, S output : test_AI_DatesBot_entries) { |
13 | new LS out; |
14 | bot.say = vfAddToCollection(out); |
15 | bot.addInput(in); |
16 | assertEqualsVerbose(scorer, ll(output), out); |
17 | } |
18 | ret print(scorer); |
19 | } |
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: | 262 / 389 |
Version history: | 7 change(s) |
Referenced in: | [show references] |