21 lines
331 B
D
21 lines
331 B
D
import testparser;
|
|
import std.stdio;
|
|
|
|
int main()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
unittest
|
|
{
|
|
string input = "abcdef";
|
|
auto parser = new Parser(input);
|
|
assert(parser.parse() == P_SUCCESS);
|
|
writeln("pass1");
|
|
|
|
input = "defabcdef";
|
|
parser = new Parser(input);
|
|
assert(parser.parse() == P_SUCCESS);
|
|
writeln("pass2");
|
|
}
|