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

@@ -16,6 +16,8 @@ class StringReader
std::string line(bool truncateEnd = true);
std::string getTokens(std::vector<std::string> get_chars, bool truncateEnd = true);
std::string truncateEnd(std::string to_truncate);
static void test();
protected:
private:
std::string rd_string;