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

30
LINES

< > BotCompany Repo | #1021764 // John Doe Test Case 2 [the default-word bug]

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

Download Jar. Libraryless. Click here for Pure Java version (17597L/101K).

!7

sS data = [[

  -- rule 1
  
  who is a trader   [input]
  + x y is a trader [statement]
  => x y

  -- test input
  
  john doe is a trader
  alfred hitchcock is a director
  who is a director?
  
  -- expected output
  
  alfred hitchcock
  
]];

!include once #1021761 // Gazelle Fakery
 
p-exp {
  // fails:
  // gazelle_fakery_performTest(data, selfVarsFix := false);
  // works:
  gazelle_fakery_performTest(data);
}

Author comment

Began life as a copy of #1021758

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: #1021764
Snippet name: John Doe Test Case 2 [the default-word bug]
Eternal ID of this version: #1021764/5
Text MD5: 7a3121082718cb86bfc8fe103a33c7ba
Transpilation MD5: 353c93545c6755f8ac599794b68f785a
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-26 10:39:03
Source code size: 455 bytes / 30 lines
Pitched / IR pitched: No / No
Views / Downloads: 478 / 1077
Version history: 4 change(s)
Referenced in: [show references]