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

11
LINES

< > BotCompany Repo | #1008319 // lispCheckQuestionsVerbose - check answers to questions

JavaX fragment (include)

1  
// lines are in the format Q => A
2  
svoid lispCheckQuestionsVerbose(S questionsAndAnswers) {
3  
  for (S s : toLinesFullTrim_java(questionsAndAnswers)) {
4  
    new Matches m;
5  
    if (flexMatchIC("* => *", s, m)) {
6  
      L<S> answers = lispSolveQuestionVerbose($1);
7  
      if (l(answers) != 1 || !match($2, first(answers)))
8  
        print("  FAIL");
9  
    }
10  
  }
11  
}

Author comment

Began life as a copy of #1008301

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008319
Snippet name: lispCheckQuestionsVerbose - check answers to questions
Eternal ID of this version: #1008319/3
Text MD5: 12fcd6c014fb6e49aec8ad70905febc3
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-07 18:51:42
Source code size: 361 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 377 / 397
Version history: 2 change(s)
Referenced in: [show references]