Libraryless. Click here for Pure Java version (4619L/30K).
1 | svoid test_parseColonHeadingSections() { |
2 | S input = autoUnindent_mls([[ |
3 | Prelude |
4 | |
5 | Inputs: |
6 | |
7 | "Where is the code repository?" |
8 | "Where is the fork?" |
9 | |
10 | Expected output: |
11 | |
12 | "Where is the *?" |
13 | ]]); |
14 | |
15 | SS map = parseColonHeadingSections(input); |
16 | assertEqualsVerbose(ll("", "Inputs", "Expected output"), keysList(map)); |
17 | assertEqualsVerbose_struct("Prelude", trim(map.get(""))); |
18 | assertEqualsVerbose_struct("\"Where is the code repository?\"\n\"Where is the fork?\"", trim(map.get("Inputs"))); |
19 | assertEqualsVerbose_struct("\"Where is the *?\"", trim(map.get("Expected output"))); |
20 | } |
Began life as a copy of #1027382
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030025 |
Snippet name: | test_parseColonHeadingSections (OK) |
Eternal ID of this version: | #1030025/5 |
Text MD5: | 4de339408d230ffc6ec95227bd4d460d |
Transpilation MD5: | 15afe74dad5583cd3b064ad8d9f27494 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-10-30 11:23:10 |
Source code size: | 633 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 219 / 305 |
Version history: | 4 change(s) |
Referenced in: | [show references] |