Merged changes from @blackwhale. Added and fixed unit tests.
This commit is contained in:
commit
89d18755b8
|
@ -3344,7 +3344,9 @@ unittest
|
||||||
LexerConfig config;
|
LexerConfig config;
|
||||||
auto tokens = byToken(source, config);
|
auto tokens = byToken(source, config);
|
||||||
Token a = tokens.moveFront();
|
Token a = tokens.moveFront();
|
||||||
|
assert (a.type == TokenType.import_);
|
||||||
Token b = tokens.moveFront();
|
Token b = tokens.moveFront();
|
||||||
|
assert (b.type == TokenType.identifier);
|
||||||
assert (a != b);
|
assert (a != b);
|
||||||
assert (a != "foo");
|
assert (a != "foo");
|
||||||
assert (a < b);
|
assert (a < b);
|
||||||
|
@ -3368,6 +3370,4 @@ unittest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//void main(string[] args)
|
//void main(string[] args){}
|
||||||
//{
|
|
||||||
//}
|
|
||||||
|
|
Loading…
Reference in New Issue