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

13
LINES

< > BotCompany Repo | #1021763 // gazelle_fakery_processInput (and check output, not used anymore)

JavaX fragment (include)

1  
svoid gazelle_fakery_processInput(TreeMap<S> sections, O... _) {
2  
  new LS lines;
3  
  LS inputLines = tlft(sections.get("test input"));
4  
  for i over inputLines: {
5  
    S input = inputLines.get(i);
6  
    gazelle_gatherFulfillments(ll(nu GazelleLine(text := input)), fulfillments, debug := true);
7  
    lines.addAll(printLinesWithIndent("OUT> ", collect line(dm_gazelle_reasonAboutChatInput_v2(null, input, paramsPlus(_,
8  
      preContext := subList(inputLines, 0, i),
9  
      requiredComment := null, debug := true)))));
10  
  }
11  
  
12  
  assertEqualsVerbose(lines, tlft(sections.get("expected output")));
13  
}

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: #1021763
Snippet name: gazelle_fakery_processInput (and check output, not used anymore)
Eternal ID of this version: #1021763/7
Text MD5: bbe3ab6f7c6892f2ee93a7cb6c6c6191
Author: stefan
Category: javax / gazelle
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-11 15:51:46
Source code size: 598 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 379 / 373
Version history: 6 change(s)
Referenced in: [show references]