|
t/parse.t
|
- 1..83
- ok 1 - JSON string «{ }» parsed
- ok 2 - JSON string «{ "a" : "b" }» parsed
- ok 3 - JSON string «{ "a" : null }» parsed
- ok 4 - JSON string «{ "a" : true }» parsed
- ok 5 - JSON string «{ "a" : false }» parsed
- ok 6 - JSON string «{ "a" : { } }» parsed
- ok 7 - JSON string «[\n...[6]» parsed
- ok 8 - JSON string «[-42,true,false,null]» parsed
- ok 9 - JSON string «{ "integer": 1234567890 }» parsed
- ok 10 - JSON string «{ "real": -9876.543210 }» parsed
- ok 11 - JSON string «{ "e": 0.123456789e-12 }» parsed
- ok 12 - JSON string «{ "E": 1.234567890E+34 }» parsed
- ok 13 - JSON string «{ "": 23456789012E66 }» parsed
- ok 14 - JSON string «{ "zero": 0 }» parsed
- ok 15 - JSON string «{ "one": 1 }» parsed
- ok 16 - JSON string «{ "space": " " }» parsed
- ok 17 - JSON string «{ "quote": "\""}» parsed
- ok 18 - JSON string «{ "backslash": "\\"}» parsed
- ok 19 - JSON string «{ "controls": "\b\f\n\r\t"}» parsed
- ok 20 - JSON string «{ "slash": "/ & \/"}» parsed
- ok 21 - JSON string «{ "alpha": "abcdefghijklmnopqrstuvwyz"}» parsed
- ok 22 - JSON string «{ "ALPHA": "ABCDEFGHIJKLMNOPQRSTUVWYZ"}» parsed
- ok 23 - JSON string «{ "digit": "0123456789"}» parsed
- ok 24 - JSON string «{ "0123456789": "digit"}» parsed
- ok 25 - JSON string «{"special": "`1~!@#$%^&*()_+-={':[,]}|;.</>?"}» parsed
- ok 26 - JSON string «{"hex": "\u0123\u4567\u89AB\uCDEF\uabcd\uef4A"}» parsed
- ok 27 - JSON string «{"true": true}» parsed
- ok 28 - JSON string «{"false": false}» parsed
- ok 29 - JSON string «{"null": null}» parsed
- ok 30 - JSON string «{"array":[ ]}» parsed
- ok 31 - JSON string «{"object":{ }}» parsed
- ok 32 - JSON string «{"address": "50 St. James Street"}» parsed
- ok 33 - JSON string «{"url": "http://www.JSON.org/"}» parsed
- ok 34 - JSON string «{"comment": "// /* <!-- --"}» parsed
- ok 35 - JSON string «{"# -- --> */": " "}» parsed
- ok 36 - JSON string «{ " s p a c e d " :[1,2 , 3\n...[35]» parsed
- ok 37 - JSON string «{"jsontext": "{\"object with 1 member\":[\"array with 1 element\"]}"}» parsed
- ok 38 - JSON string «{"quotes": "" \u0022 %22 0x22 034 ""}» parsed
- ok 39 - JSON string «{ "\/\\\"\uCAFE\uBABE\uAB98\uFCDE\ubcda\uef4A\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?"\n...[38]» parsed
- ok 40 - JSON string «[ 0.5 ,98.6\n...[39]» parsed
- ok 41 - JSON string «[1e-1]» parsed
- ok 42 - JSON string «[1e00,2e+00,2e-00,"rosebud"]» parsed
- ok 43 - JSON string «[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]» parsed
- ok 44 - JSON string «{\n...[43]» parsed
- ok 45 - JSON string «{\n...[44]» parsed
- ok 46 - JSON string «{"menu": {\n...[45]» parsed
- ok 47 - JSON string «{"widget": {\n...[46]» parsed
- ok 48 - NOT parsed «{ »
- ok 49 - NOT parsed «{ 3 : 4 }»
- ok 50 - NOT parsed «{ 3 : tru }»
- ok 51 - NOT parsed «{ "a : false }»
- ok 52 - NOT parsed «"A JSON payload should be an object or array, not a string."»
- ok 53 - NOT parsed «{"Extra value after close": true} "misplaced quoted value"»
- ok 54 - NOT parsed «{"Illegal expression": 1 + 2}»
- ok 55 - NOT parsed «{"Illegal invocation": alert()}»
- ok 56 - NOT parsed «{"Numbers cannot have leading zeroes": 013}»
- ok 57 - NOT parsed «{"Numbers cannot be hex": 0x14}»
- ok 58 - NOT parsed «["Illegal backslash escape: \x15"]»
- ok 59 - NOT parsed «[\naked]»
- ok 60 - NOT parsed «["Illegal backslash escape: \017"]»
- ok 61 - NOT parsed «{"Missing colon" null}»
- ok 62 - NOT parsed «["Unclosed array"»
- ok 63 - NOT parsed «{"Double colon":: null}»
- ok 64 - NOT parsed «{"Comma instead of colon", null}»
- ok 65 - NOT parsed «["Colon instead of comma": false]»
- ok 66 - NOT parsed «["Bad value", truth]»
- ok 67 - NOT parsed «['single quote']»
- ok 68 - NOT parsed «[" tab character in string "]»
- ok 69 - NOT parsed «["tab\ character\ in\ string\ "]»
- ok 70 - NOT parsed «["line\n...[69]»
- ok 71 - NOT parsed «["line\\n...[70]»
- ok 72 - NOT parsed «[0e]»
- ok 73 - NOT parsed «{unquoted_key: "keys must be quoted"}»
- ok 74 - NOT parsed «[0e+]»
- ok 75 - NOT parsed «[0e+-1]»
- ok 76 - NOT parsed «{"Comma instead if closing brace": true,»
- ok 77 - NOT parsed «["mismatch"}»
- ok 78 - NOT parsed «["extra comma",]»
- ok 79 - NOT parsed «["double extra comma",,]»
- ok 80 - NOT parsed «[ , "<-- missing value"]»
- ok 81 - NOT parsed «["Comma after the close"],»
- ok 82 - NOT parsed «["Extra close"]]»
- ok 83 - NOT parsed «{"Extra comma": true,}»
|
8.64s |
100.0% |
|
t/structure.t
|
- Parse error: Bad plan. You planned 7 tests but ran 4.
- 1..7
- ok 1 - Correct data structure for «{ "a" : 1 }»
- ok 2 - Correct data structure for «[]»
- ok 3 - Correct data structure for «[ "a", "b"]»
- ok 4 - Correct data structure for «[3]»
- "str_escape" => Match.new(
- # WARNING: this is not working perl code
- # and for debugging purposes only
- ast => "\t",
- Str => "t",
- from => 3,
- to => 4,
- named => {
- 'xdigit' => undef,
- },
- )
- Method 'ast' not found for invocant of class 'Failure'
|
7.01s |
57.1% |