Test skipping over strings
import mir.deser.text.tokenizer : tokenizeString; import mir.deser.text.tokens : IonTokenizerException; void test(string ts, char result) { auto t = tokenizeString(ts); assert(t.skipString() == result); } void testFail(string ts) { import std.exception : assertThrown; auto t = tokenizeString(ts); assertThrown!IonTokenizerException(t.skipString()); } test("\"", 0); test("\",", ','); test("foo\\\"bar\"], \"\"", ']'); test("foo\\\nbar\" \t\t\t", ' '); testFail("foobar"); testFail("foobar\n");