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

9
LINES

< > BotCompany Repo | #1018480 // Test lines_iterator (OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (6489L/46K).

1  
!7
2  
3  
p-exp {
4  
  assertEmpty(asList(lines_iterator("")));
5  
  assertEqualsVerbose(ll("hello"), asList(lines_iterator("hello")));
6  
  assertEqualsVerbose(ll("hello"), asList(lines_iterator("hello\n")));
7  
  assertEqualsVerbose(ll("hello", "you"), asList(lines_iterator("hello\nyou")));
8  
  assertEqualsVerbose(ll("hello", "you"), asList(lines_iterator("hello\nyou\r\n")));
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018480
Snippet name: Test lines_iterator (OK)
Eternal ID of this version: #1018480/2
Text MD5: 089ef80bb197d6ad3a813bc4903b6c4c
Transpilation MD5: 6ad40f0ca3cc3c5001922fb67912d417
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-01 18:12:47
Source code size: 370 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 406 / 982
Version history: 1 change(s)
Referenced in: [show references]