Add unit tests for StringReader. You can run them with ./kraken --test.

This commit is contained in:
Jason Orendorff
2013-10-25 02:04:22 -07:00
parent 02fd878c92
commit 08baae465a
3 changed files with 54 additions and 2 deletions

View File

@@ -17,7 +17,11 @@
int main(int argc, char* argv[]) {
if (argc == 2 && std::string(argv[1]) == "--test") {
StringReader::test();
return 0;
}
std::ifstream programInFile, grammerInFile;
std::ofstream outFile, outFileTransformed, outFileAST;
@@ -144,4 +148,4 @@ int main(int argc, char* argv[]) {
return(0);
}