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

26
LINES

< > BotCompany Repo | #1021997 // Finding the best answer Test Case [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (18518L/108K).

!7

sS data = [[

  -- rule
  
  what is google
  + google is a company [statement]
  => a company, my friend

  -- test input
  
  john is a guy
  google is a company
  what is google

  -- expected output
  
  a company, my friend
]];

!include once #1021761 // Gazelle Fakery
 
p-exp {
  gazelle_fakery_performTest(data, matchStatementsDebug := true);
}

Author comment

Began life as a copy of #1021799

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: #1021997
Snippet name: Finding the best answer Test Case [OK]
Eternal ID of this version: #1021997/5
Text MD5: 5a49baf161c86b66688afabc35ac0b31
Transpilation MD5: 7ee7776064c69288f33523ac142d03f9
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-05 09:38:43
Source code size: 381 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 206 / 634
Version history: 4 change(s)
Referenced in: [show references]