Lines Matching refs:decode_error
64 def decode_error(expr, error):
67 decode_error('truefalse',
70 decode_error('"abc', "unclosed string literal")
71 decode_error('"ab\\gc"', "invalid character 'g' in string escape code")
72 decode_error("'abc'", "unexpected character '\\\\''")
74 decode_error("1.2.3", "invalid number: 1.2.3")
75 decode_error("+1", "unexpected character '\\+'")
76 decode_error("-abc", "invalid number: -")
77 decode_error("-", "invalid number: -")
78 decode_error("-00", "invalid number: -00")
79 decode_error("00", "invalid number: 00")
80 decode_error("--1", "invalid number: --1")
81 decode_error("-+1", "invalid number: -\\+1")
82 decode_error("1e1e1", "invalid number: 1e1e1")
83 decode_error("0123", "invalid number: 0123")
84 decode_error("000.123", "invalid number: 000.123")
85 decode_error("-0123", "invalid number: -0123")
86 decode_error("-000.123", "invalid number: -000.123")
87 decode_error("0x123", "unexpected character 'x' after value")
89 decode_error('[1, 2 ', "unexpected end of file")
90 decode_error('[1, 2, ', "unexpected end of file")
91 decode_error('[1, 2, ]', "unexpected character ']'")
92 decode_error('[1, 2, }', "unexpected character '}'")
93 decode_error('[1, 2}', "got '}', want ',' or ']'")
95 decode_error('{"one": 1', "unexpected end of file")
96 decode_error('{"one" 1', "after object key, got '1', want ':'")
97 decode_error('{"one": 1 "two": 2', "in object, got '\"', want ',' or '}'")
98 decode_error('{"one": 1,', "unexpected end of file")
99 decode_error('{"one": 1, }', "unexpected character '}'")
100 decode_error('{"one": 1]', "in object, got ']', want ',' or '}'")