Transpiled version (2582L) is out of date.
1 | svoid test_underlinedHeadingSections() { |
2 | S input = autoUnindent_mls([[ |
3 | prelude |
4 | |
5 | title |
6 | ----- |
7 | |
8 | text |
9 | |
10 | title 2 |
11 | ------- |
12 | |
13 | text 2 |
14 | ]]); |
15 | |
16 | SS map = underlinedHeadingSections(input); |
17 | assertEqualsVerbose(ll("", "title", "title 2"), keysList(map)); |
18 | assertEqualsVerbose("prelude", trim(map.get(""))); |
19 | assertEqualsVerbose("text", trim(map.get("title"))); |
20 | assertEqualsVerbose("text 2", trim(map.get("title 2"))); |
21 | } |
Began life as a copy of #1027381
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027382 |
Snippet name: | test_underlinedHeadingSections (OK) |
Eternal ID of this version: | #1027382/4 |
Text MD5: | 0c0b1d9d1ed64a31f61fc37cb4f48b3d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-16 14:21:17 |
Source code size: | 476 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 228 / 338 |
Version history: | 3 change(s) |
Referenced in: | [show references] |