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

14
LINES

< > BotCompany Repo | #1013234 // Test ai_patternSwitch_upperCaseVars

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

Download Jar. Libraryless. Click here for Pure Java version (6201L/42K).

!7

p {
  autoRestart();
  //set ai_patternSwitch_upperCaseVars_debug;
  
  S input = "This (bla) is a (sentence)";
  S op = "this What is a Something";
  printStruct(ai_operands_upperCaseVars(op, input));
  assertEqualsVerbose("Any (sentence) can be a (bla)",
    ai_patternSwitch_upperCaseVars(
      "This YX is a XY", "Any XY can be a YX", input));
  print("OK");
}

Author comment

Began life as a copy of #1013231

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: #1013234
Snippet name: Test ai_patternSwitch_upperCaseVars
Eternal ID of this version: #1013234/7
Text MD5: e0a85f14382f3f371e137b1e72a552c6
Transpilation MD5: 289301d0cc226fdf43e398a60f448d1c
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-28 23:47:27
Source code size: 382 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 330 / 845
Version history: 6 change(s)
Referenced in: [show references]