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

1  
!7
2  
3  
sS data = [[
4  
5  
  -- rule 1
6  
  
7  
  who is a trader   [input]
8  
  + x y is a trader [statement]
9  
  => x y
10  
11  
  -- test input
12  
  
13  
  john doe is a trader
14  
  alfred hitchcock is a director
15  
  who is a director?
16  
  
17  
  -- expected output
18  
  
19  
  alfred hitchcock
20  
  
21  
]];
22  
23  
!include once #1021761 // Gazelle Fakery
24  
 
25  
p-exp {
26  
  // fails:
27  
  // gazelle_fakery_performTest(data, selfVarsFix := false);
28  
  // works:
29  
  gazelle_fakery_performTest(data);
30  
}

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: 479 / 1081
Version history: 4 change(s)
Referenced in: [show references]