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

19
LINES

< > BotCompany Repo | #1004578 // Check if toLines+fromLines gives the exact same string

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

Libraryless. Click here for Pure Java version (1058L/7K/25K).

!752

p {
  check("");
  check("\n");
  check("\n\n");
  check("\na");
  check("a\n");
  check("a");
  check("b\n\n");
  check("\n\nc");
  check("\nd\n");
  print("...");
  check("\r\n");
}

static void check(S s) {
  assertEquals(s, fromLines(toLines(s)));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

-
Snippet ID: #1004578
Snippet name: Check if toLines+fromLines gives the exact same string
Eternal ID of this version: #1004578/1
Text MD5: f74c0ed1e7eb4138d501217d1c497b7e
Transpilation MD5: b3bc7e0a19ca6354a669b2cb97d7c8bf
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-22 14:35:53
Source code size: 277 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 453 / 527
Referenced in: