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

43
LINES

< > BotCompany Repo | #1022408 // Gazelle Test 13: Condition [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (20023L/118K).

!7

sS data = [[

  -- rules
  
  hello
  + yes [condition]
  => yo
  
  bello
  + no [condition]
  => oh
  
  yes
  => {= true }
  [purpose: condition to eval]

  no
  => {= false }
  [purpose: condition to eval]

    -- test input 1
  
  hello

  -- expected output 1
  
  yo

  -- test input 2
  
  bello

  -- expected output 2
  
]];

!include once #1021761 // Gazelle Fakery
 
p-exp {
  gazelle_fakery_performTest(data);
}

Author comment

Began life as a copy of #1022245

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1022408
Snippet name: Gazelle Test 13: Condition [OK]
Eternal ID of this version: #1022408/3
Text MD5: db7963375124ee091191249eb5794467
Transpilation MD5: 3649057ebf39b513f9df1d38e86c1733
Author: stefan
Category: javax / gazelle
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-16 22:12:08
Source code size: 470 bytes / 43 lines
Pitched / IR pitched: No / No
Views / Downloads: 424 / 975
Version history: 2 change(s)
Referenced in: #1022410 - Gazelle Test 14: only var is X [OK]