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

1  
!7
2  
3  
sS data = [[
4  
5  
  -- rules
6  
  
7  
  hello
8  
  + yes [condition]
9  
  => yo
10  
  
11  
  bello
12  
  + no [condition]
13  
  => oh
14  
  
15  
  yes
16  
  => {= true }
17  
  [purpose: condition to eval]
18  
19  
  no
20  
  => {= false }
21  
  [purpose: condition to eval]
22  
23  
    -- test input 1
24  
  
25  
  hello
26  
27  
  -- expected output 1
28  
  
29  
  yo
30  
31  
  -- test input 2
32  
  
33  
  bello
34  
35  
  -- expected output 2
36  
  
37  
]];
38  
39  
!include once #1021761 // Gazelle Fakery
40  
 
41  
p-exp {
42  
  gazelle_fakery_performTest(data);
43  
}

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: 286 / 699
Version history: 2 change(s)
Referenced in: [show references]