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

43
LINES

< > BotCompany Repo | #1021799 // Default Answer Test Case [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (17970L/104K).

1  
!7
2  
3  
sS data = [[
4  
5  
  -- rule 1
6  
  
7  
  is black the opposite of white
8  
  + black is the opposite of white [statement]
9  
  => yes
10  
  [don't change "is"]
11  
  
12  
  -- rule 2
13  
  
14  
  is black the opposite of white
15  
  => no
16  
  [default]
17  
  [don't change "is"]
18  
  
19  
  -- test input 1
20  
  
21  
  bright is the opposite of dark
22  
  is bright the opposite of dark?
23  
24  
  -- expected output 1
25  
  
26  
  yes
27  
  
28  
  -- test input 2
29  
  
30  
  bright is the opposite of dark
31  
  is blue the opposite of dark?
32  
33  
  -- expected output 2
34  
  
35  
  no
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 #1021764

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021799
Snippet name: Default Answer Test Case [OK]
Eternal ID of this version: #1021799/6
Text MD5: 97d8931dcb474700c250a2ae462a2567
Transpilation MD5: fca9984bd827ebb3035530487fbb792c
Author: stefan
Category: javax / gazelle
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-27 16:25:25
Source code size: 620 bytes / 43 lines
Pitched / IR pitched: No / No
Views / Downloads: 438 / 1171
Version history: 5 change(s)
Referenced in: [show references]