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)

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

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: 284 / 286
Version history: 6 change(s)
Referenced in: [show references]