Test skipping over hex 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.skipHex() == expected); } void testFail(string ts) { import std.exception : assertThrown; auto t = tokenizeString(ts); assertThrown!IonTokenizerException(t.skipHex()); } test("0xDEADBABE,0xDEADBABE", ','); test("0x0", 0); test("-0x0F ", ' '); test("0x1234567890abcdefABCDEF,", ','); testFail("0xG");