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

11
LINES

< > BotCompany Repo | #1021199 // test_ai_check_yearVsYears

JavaX fragment (include)

svoid test_ai_check_yearVsYears() {
  for (S s, ok : parseDoubleArrowLinkedHashMap([[
    1 year, 2 years => true
    1 years, 2 years => false
    2 years, 1 years => false
    3 years, 10 years => true
    bla => true
  ]])) {
    assertEquals(s, ok, str(ai_check_yearVsYears(s)));
  }
}

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: #1021199
Snippet name: test_ai_check_yearVsYears
Eternal ID of this version: #1021199/3
Text MD5: 64ca4a4d372a78034ac223762434b4c8
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-02 17:29:22
Source code size: 299 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 248 / 300
Version history: 2 change(s)
Referenced in: [show references]