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

16
LINES

< > BotCompany Repo | #1014193 // Test wikipediaDeformat function against examples from mech list (OK)

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

Download Jar. Libraryless. Click here for Pure Java version (6081L/39K).

1  
!7
2  
3  
p {
4  
  SS examples = mechMap("Deformatting text from Wikipedia | Examples");
5  
  pnlStruct(examples);
6  
  for (S in, out : examples) {
7  
    S proposition = wikipediaDeformat(in);
8  
    if (eq(proposition, out))
9  
      print("OK: " + proposition);
10  
    else {
11  
      print("Not OK:");
12  
      print("  " + proposition);
13  
      print("  " + out);
14  
    }
15  
  }
16  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014193
Snippet name: Test wikipediaDeformat function against examples from mech list (OK)
Eternal ID of this version: #1014193/5
Text MD5: cc2d125831ab389859e9896f44a34a99
Transpilation MD5: 44e1ca615749c02d44b83d618762d433
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-15 17:22:16
Source code size: 361 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 498 / 1112
Version history: 4 change(s)
Referenced in: [show references]