Test skipping over numbers
import mir.deser.text.tokenizer : tokenizeString; import mir.deser.text.tokens : IonTokenizerException; void test(string ts, char expected) { auto t = tokenizeString(ts); assert(t.skipNumber() == expected); } void testFail(string ts) { import std.exception : assertThrown; auto t = tokenizeString(ts); assertThrown!IonTokenizerException(t.skipNumber()); } test("", 0); test("0", 0); test("-0", 0); test("-1234567890,", ','); test("1.2 ", ' '); test("1d45\n", '\n'); test("1.4e-12//", '/'); testFail("1.2d3d");