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

!7

sS data = [[

  -- rule 1
  
  is black the opposite of white
  + black is the opposite of white [statement]
  => yes
  [don't change "is"]
  
  -- rule 2
  
  is black the opposite of white
  => no
  [default]
  [don't change "is"]
  
  -- test input 1
  
  bright is the opposite of dark
  is bright the opposite of dark?

  -- expected output 1
  
  yes
  
  -- test input 2
  
  bright is the opposite of dark
  is blue the opposite of dark?

  -- expected output 2
  
  no
  
]];

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

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: 437 / 1167
Version history: 5 change(s)
Referenced in: #1021807 - Test Case With User [OK]
#1021997 - Finding the best answer Test Case [OK]