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

21
LINES

< > BotCompany Repo | #1027382 // test_underlinedHeadingSections (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2582L) is out of date.

svoid test_underlinedHeadingSections() {
  S input = autoUnindent_mls([[
    prelude
    
    title
    -----
    
    text
    
    title 2
    -------
    
    text 2
  ]]);

  SS map = underlinedHeadingSections(input);
  assertEqualsVerbose(ll("", "title", "title 2"), keysList(map));
  assertEqualsVerbose("prelude", trim(map.get("")));
  assertEqualsVerbose("text", trim(map.get("title")));
  assertEqualsVerbose("text 2", trim(map.get("title 2")));
}

Author comment

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: 226 / 334
Version history: 3 change(s)
Referenced in: [show references]