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)

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

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: 250 / 303
Version history: 2 change(s)
Referenced in: [show references]