Skip to content

Commit

Permalink
update the changed test references due to trimErrorForTestReporting
Browse files Browse the repository at this point in the history
…: far fewer lines dumped when an error is included in the output stream.
  • Loading branch information
GerHobbelt committed Jun 6, 2018
1 parent 258a9db commit 09bf2d1
Show file tree
Hide file tree
Showing 28 changed files with 1,612 additions and 88,672 deletions.
948 changes: 70 additions & 878 deletions packages/lex-parser/tests/specs/output/0014-test.jisonlex-lex.json5

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ return true;
`,
err: {
name: 'JisonLexerError',
message: `Lexical error on line 2:
Incorrectly terminated action code block. We're expecting the
'%}' end marker to go with the given start marker.
Expand All @@ -18,7 +19,44 @@ Regrettably, it does not exist in the remainder of the input.
^..............^^
3: return true;
4: }}`,
name: 'JisonLexerError',
stack: `JisonLexerError: Lexical error on line 2:
Incorrectly terminated action code block. We're expecting the
'%}' end marker to go with the given start marker.
Regrettably, it does not exist in the remainder of the input.
Erroneous area:
1: %%
2: "["[^\\]]"]" %{
^..............^^
3: return true;
4: }}
at Object.parseError (\lex-parser-cjs-es5.js:3397:19)
at Object.lexer_parseError [as parseError] (\lex-parser-cjs-es5.js:5060:54)
at Object.yyError [as yyerror] (\lex-parser-cjs-es5.js:5091:25)
at Object.lexer__performAction [as performAction] (\lex-parser-cjs-es5.js:6547:37)
at Object.lexer_test_match [as test_match] (\lex-parser-cjs-es5.js:5956:40)
at Object.lexer_next [as next] (\lex-parser-cjs-es5.js:6067:30)
at Object.lexer_fastLex [as fastLex] (\lex-parser-cjs-es5.js:6168:26)
at fastLex (\lex-parser-cjs-es5.js:3930:31)
at Object.parse (\lex-parser-cjs-es5.js:4051:34)
at Object.yyparse [as parse] (\lex-parser-cjs-es5.js:7726:25)
at Context.testEachParserExample (\all-tests.js:318:19)
at callFn (\runnable.js:372:21)
at Test.Runnable.run (\runnable.js:364:7)
at Runner.runTest (\runner.js:455:10)
at \runner.js:573:12
at next (\runner.js:369:14)
at \runner.js:379:7
at next (\runner.js:303:14)
at \runner.js:342:7
at done (\runnable.js:319:5)
at callFn (\runnable.js:395:7)
at Hook.Runnable.run (\runnable.js:364:7)
at next (\runner.js:317:10)
at Immediate.<anonymous> (\runner.js:347:5)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)`,
hash: {
errStr: `Lexical error on line 2:
Incorrectly terminated action code block. We're expecting the
Expand Down Expand Up @@ -83,7 +121,6 @@ Regrettably, it does not exist in the remainder of the input.
conditionStack: [
'INITIAL',
],
__currentRuleSet__: null,
offset: 0,
base_position: 0,
},
Expand Down
Loading

0 comments on commit 09bf2d1

Please sign in to comment.