Clean up unit test
This commit is contained in:
parent
87a1365dc9
commit
25e1622d47
|
@ -445,14 +445,14 @@ ImportKind determineImportKind(T)(T tokens)
|
|||
|
||||
unittest
|
||||
{
|
||||
Token[] t;
|
||||
t ~= Token(tok!"import");
|
||||
t ~= Token(tok!"identifier");
|
||||
t ~= Token(tok!".");
|
||||
t ~= Token(tok!"identifier");
|
||||
t ~= Token(tok!":");
|
||||
t ~= Token(tok!"identifier");
|
||||
t ~= Token(tok!",");
|
||||
Token[] t = [
|
||||
Token(tok!"import"),
|
||||
Token(tok!"identifier"),
|
||||
Token(tok!"."),
|
||||
Token(tok!"identifier"),
|
||||
Token(tok!":"),
|
||||
Token(tok!"identifier"),
|
||||
Token(tok!",")];
|
||||
assert (determineImportKind(t) == ImportKind.selective);
|
||||
Token[] t2;
|
||||
t2 ~= Token(tok!"else");
|
||||
|
|
Loading…
Reference in New Issue