Skip to content

Commit

Permalink
fix #501 unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed Nov 8, 2024
1 parent 62d035d commit 4e11e26
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/ParserTests/Issue501/Issue501Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,9 @@ public void TestIssue501()
Check.That(build.Result).IsNotNull();
Check.That(build.Result).IsInstanceOf<GenericLexer<Issue501Token>>();
var lexer = build.Result as GenericLexer<Issue501Token>;
foreach (var subLexer in lexer.GetSubLexers())
{
var graph = lexer.ToGraphViz(subLexer);
File.WriteAllText(Path.Combine("c:/tmp",$"{subLexer}.txt"),graph);
}
var source = @"test = 3";
var lexed = lexer.Tokenize(source);
Check.That(lexed).IsOkLexing();
// Check.That(lexed.Error.ErrorType).IsEqualTo(ErrorType.UnexpectedChar);
// Check.That(lexed.Error.UnexpectedChar).IsEqualTo('=');
var tokens = lexed.Tokens;
Check.That(tokens).IsNotNull();
var mainTokens = tokens.MainTokens();
Expand Down

0 comments on commit 4e11e26

Please sign in to comment.