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).

!7

p {
  SS examples = mechMap("Deformatting text from Wikipedia | Examples");
  pnlStruct(examples);
  for (S in, out : examples) {
    S proposition = wikipediaDeformat(in);
    if (eq(proposition, out))
      print("OK: " + proposition);
    else {
      print("Not OK:");
      print("  " + proposition);
      print("  " + out);
    }
  }
}

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: 499 / 1113
Version history: 4 change(s)
Referenced in: