Begin testing lexer
This commit is contained in:
parent
230c324209
commit
e8df4296cc
@ -51,6 +51,6 @@ unittest
|
||||
{
|
||||
alias LT = Testparser.Lexer.LexedToken;
|
||||
string input = "5 + 4 * \n677 + 567";
|
||||
Testparser.Lexer lexer = new Testparser.Lexer(cast(const(ubyte) *)input.ptr, input.sizeof);
|
||||
//assert(lexer.lex_token() == LT(0, 0, Testparser.TOKEN_INT));
|
||||
Testparser.Lexer lexer = new Testparser.Lexer(cast(const(ubyte) *)input.ptr, input.length);
|
||||
assert(lexer.lex_token() == LT(0, 0, Testparser.TOKEN_INT));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user