diff options
author | Waqas Hussain <waqas20@gmail.com> | 2017-09-15 17:07:57 -0400 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2017-09-15 17:07:57 -0400 |
commit | 67293fc09fea737de37a2fea7b211aa44695b5bf (patch) | |
tree | b5cd2d09f0ee7e1e9e13feec26defe4f7d9f5003 /tests/json | |
parent | 4c6c255113df008869577d4ec0291ff880b1273c (diff) | |
download | prosody-67293fc09fea737de37a2fea7b211aa44695b5bf.tar.gz prosody-67293fc09fea737de37a2fea7b211aa44695b5bf.zip |
Port tests to the `busted` test runner
Diffstat (limited to 'tests/json')
36 files changed, 0 insertions, 100 deletions
diff --git a/tests/json/fail1.json b/tests/json/fail1.json deleted file mode 100644 index 6216b865..00000000 --- a/tests/json/fail1.json +++ /dev/null @@ -1 +0,0 @@ -"A JSON payload should be an object or array, not a string."
\ No newline at end of file diff --git a/tests/json/fail10.json b/tests/json/fail10.json deleted file mode 100644 index 5d8c0047..00000000 --- a/tests/json/fail10.json +++ /dev/null @@ -1 +0,0 @@ -{"Extra value after close": true} "misplaced quoted value"
\ No newline at end of file diff --git a/tests/json/fail11.json b/tests/json/fail11.json deleted file mode 100644 index 76eb95b4..00000000 --- a/tests/json/fail11.json +++ /dev/null @@ -1 +0,0 @@ -{"Illegal expression": 1 + 2}
\ No newline at end of file diff --git a/tests/json/fail12.json b/tests/json/fail12.json deleted file mode 100644 index 77580a45..00000000 --- a/tests/json/fail12.json +++ /dev/null @@ -1 +0,0 @@ -{"Illegal invocation": alert()}
\ No newline at end of file diff --git a/tests/json/fail13.json b/tests/json/fail13.json deleted file mode 100644 index 379406b5..00000000 --- a/tests/json/fail13.json +++ /dev/null @@ -1 +0,0 @@ -{"Numbers cannot have leading zeroes": 013}
\ No newline at end of file diff --git a/tests/json/fail14.json b/tests/json/fail14.json deleted file mode 100644 index 0ed366b3..00000000 --- a/tests/json/fail14.json +++ /dev/null @@ -1 +0,0 @@ -{"Numbers cannot be hex": 0x14}
\ No newline at end of file diff --git a/tests/json/fail15.json b/tests/json/fail15.json deleted file mode 100644 index fc8376b6..00000000 --- a/tests/json/fail15.json +++ /dev/null @@ -1 +0,0 @@ -["Illegal backslash escape: \x15"]
\ No newline at end of file diff --git a/tests/json/fail16.json b/tests/json/fail16.json deleted file mode 100644 index 3fe21d4b..00000000 --- a/tests/json/fail16.json +++ /dev/null @@ -1 +0,0 @@ -[\naked]
\ No newline at end of file diff --git a/tests/json/fail17.json b/tests/json/fail17.json deleted file mode 100644 index 62b9214a..00000000 --- a/tests/json/fail17.json +++ /dev/null @@ -1 +0,0 @@ -["Illegal backslash escape: \017"]
\ No newline at end of file diff --git a/tests/json/fail18.json b/tests/json/fail18.json deleted file mode 100644 index edac9271..00000000 --- a/tests/json/fail18.json +++ /dev/null @@ -1 +0,0 @@ -[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]
\ No newline at end of file diff --git a/tests/json/fail19.json b/tests/json/fail19.json deleted file mode 100644 index 3b9c46fa..00000000 --- a/tests/json/fail19.json +++ /dev/null @@ -1 +0,0 @@ -{"Missing colon" null}
\ No newline at end of file diff --git a/tests/json/fail2.json b/tests/json/fail2.json deleted file mode 100644 index 6b7c11e5..00000000 --- a/tests/json/fail2.json +++ /dev/null @@ -1 +0,0 @@ -["Unclosed array"
\ No newline at end of file diff --git a/tests/json/fail20.json b/tests/json/fail20.json deleted file mode 100644 index 27c1af3e..00000000 --- a/tests/json/fail20.json +++ /dev/null @@ -1 +0,0 @@ -{"Double colon":: null}
\ No newline at end of file diff --git a/tests/json/fail21.json b/tests/json/fail21.json deleted file mode 100644 index 62474573..00000000 --- a/tests/json/fail21.json +++ /dev/null @@ -1 +0,0 @@ -{"Comma instead of colon", null}
\ No newline at end of file diff --git a/tests/json/fail22.json b/tests/json/fail22.json deleted file mode 100644 index a7752581..00000000 --- a/tests/json/fail22.json +++ /dev/null @@ -1 +0,0 @@ -["Colon instead of comma": false]
\ No newline at end of file diff --git a/tests/json/fail23.json b/tests/json/fail23.json deleted file mode 100644 index 494add1c..00000000 --- a/tests/json/fail23.json +++ /dev/null @@ -1 +0,0 @@ -["Bad value", truth]
\ No newline at end of file diff --git a/tests/json/fail24.json b/tests/json/fail24.json deleted file mode 100644 index caff239b..00000000 --- a/tests/json/fail24.json +++ /dev/null @@ -1 +0,0 @@ -['single quote']
\ No newline at end of file diff --git a/tests/json/fail25.json b/tests/json/fail25.json deleted file mode 100644 index 8b7ad23e..00000000 --- a/tests/json/fail25.json +++ /dev/null @@ -1 +0,0 @@ -[" tab character in string "]
\ No newline at end of file diff --git a/tests/json/fail26.json b/tests/json/fail26.json deleted file mode 100644 index 845d26a6..00000000 --- a/tests/json/fail26.json +++ /dev/null @@ -1 +0,0 @@ -["tab\ character\ in\ string\ "]
\ No newline at end of file diff --git a/tests/json/fail27.json b/tests/json/fail27.json deleted file mode 100644 index 6b01a2ca..00000000 --- a/tests/json/fail27.json +++ /dev/null @@ -1,2 +0,0 @@ -["line -break"]
\ No newline at end of file diff --git a/tests/json/fail28.json b/tests/json/fail28.json deleted file mode 100644 index 621a0101..00000000 --- a/tests/json/fail28.json +++ /dev/null @@ -1,2 +0,0 @@ -["line\ -break"]
\ No newline at end of file diff --git a/tests/json/fail29.json b/tests/json/fail29.json deleted file mode 100644 index 47ec421b..00000000 --- a/tests/json/fail29.json +++ /dev/null @@ -1 +0,0 @@ -[0e]
\ No newline at end of file diff --git a/tests/json/fail3.json b/tests/json/fail3.json deleted file mode 100644 index 168c81eb..00000000 --- a/tests/json/fail3.json +++ /dev/null @@ -1 +0,0 @@ -{unquoted_key: "keys must be quoted"}
\ No newline at end of file diff --git a/tests/json/fail30.json b/tests/json/fail30.json deleted file mode 100644 index 8ab0bc4b..00000000 --- a/tests/json/fail30.json +++ /dev/null @@ -1 +0,0 @@ -[0e+]
\ No newline at end of file diff --git a/tests/json/fail31.json b/tests/json/fail31.json deleted file mode 100644 index 1cce602b..00000000 --- a/tests/json/fail31.json +++ /dev/null @@ -1 +0,0 @@ -[0e+-1]
\ No newline at end of file diff --git a/tests/json/fail32.json b/tests/json/fail32.json deleted file mode 100644 index 45cba739..00000000 --- a/tests/json/fail32.json +++ /dev/null @@ -1 +0,0 @@ -{"Comma instead if closing brace": true,
\ No newline at end of file diff --git a/tests/json/fail33.json b/tests/json/fail33.json deleted file mode 100644 index ca5eb19d..00000000 --- a/tests/json/fail33.json +++ /dev/null @@ -1 +0,0 @@ -["mismatch"}
\ No newline at end of file diff --git a/tests/json/fail4.json b/tests/json/fail4.json deleted file mode 100644 index 9de168bf..00000000 --- a/tests/json/fail4.json +++ /dev/null @@ -1 +0,0 @@ -["extra comma",]
\ No newline at end of file diff --git a/tests/json/fail5.json b/tests/json/fail5.json deleted file mode 100644 index ddf3ce3d..00000000 --- a/tests/json/fail5.json +++ /dev/null @@ -1 +0,0 @@ -["double extra comma",,]
\ No newline at end of file diff --git a/tests/json/fail6.json b/tests/json/fail6.json deleted file mode 100644 index ed91580e..00000000 --- a/tests/json/fail6.json +++ /dev/null @@ -1 +0,0 @@ -[ , "<-- missing value"]
\ No newline at end of file diff --git a/tests/json/fail7.json b/tests/json/fail7.json deleted file mode 100644 index 8a96af3e..00000000 --- a/tests/json/fail7.json +++ /dev/null @@ -1 +0,0 @@ -["Comma after the close"],
\ No newline at end of file diff --git a/tests/json/fail8.json b/tests/json/fail8.json deleted file mode 100644 index b28479c6..00000000 --- a/tests/json/fail8.json +++ /dev/null @@ -1 +0,0 @@ -["Extra close"]]
\ No newline at end of file diff --git a/tests/json/fail9.json b/tests/json/fail9.json deleted file mode 100644 index 5815574f..00000000 --- a/tests/json/fail9.json +++ /dev/null @@ -1 +0,0 @@ -{"Extra comma": true,}
\ No newline at end of file diff --git a/tests/json/pass1.json b/tests/json/pass1.json deleted file mode 100644 index 70e26854..00000000 --- a/tests/json/pass1.json +++ /dev/null @@ -1,58 +0,0 @@ -[ - "JSON Test Pattern pass1", - {"object with 1 member":["array with 1 element"]}, - {}, - [], - -42, - true, - false, - null, - { - "integer": 1234567890, - "real": -9876.543210, - "e": 0.123456789e-12, - "E": 1.234567890E+34, - "": 23456789012E66, - "zero": 0, - "one": 1, - "space": " ", - "quote": "\"", - "backslash": "\\", - "controls": "\b\f\n\r\t", - "slash": "/ & \/", - "alpha": "abcdefghijklmnopqrstuvwyz", - "ALPHA": "ABCDEFGHIJKLMNOPQRSTUVWYZ", - "digit": "0123456789", - "0123456789": "digit", - "special": "`1~!@#$%^&*()_+-={':[,]}|;.</>?", - "hex": "\u0123\u4567\u89AB\uCDEF\uabcd\uef4A", - "true": true, - "false": false, - "null": null, - "array":[ ], - "object":{ }, - "address": "50 St. James Street", - "url": "http://www.JSON.org/", - "comment": "// /* <!-- --", - "# -- --> */": " ", - " s p a c e d " :[1,2 , 3 - -, - -4 , 5 , 6 ,7 ],"compact":[1,2,3,4,5,6,7], - "jsontext": "{\"object with 1 member\":[\"array with 1 element\"]}", - "quotes": "" \u0022 %22 0x22 034 "", - "\/\\\"\uCAFE\uBABE\uAB98\uFCDE\ubcda\uef4A\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?" -: "A key can be any string" - }, - 0.5 ,98.6 -, -99.44 -, - -1066, -1e1, -0.1e1, -1e-1, -1e00,2e+00,2e-00 -,"rosebud"]
\ No newline at end of file diff --git a/tests/json/pass2.json b/tests/json/pass2.json deleted file mode 100644 index d3c63c7a..00000000 --- a/tests/json/pass2.json +++ /dev/null @@ -1 +0,0 @@ -[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
\ No newline at end of file diff --git a/tests/json/pass3.json b/tests/json/pass3.json deleted file mode 100644 index 4528d51f..00000000 --- a/tests/json/pass3.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "JSON Test Pattern pass3": { - "The outermost value": "must be an object or array.", - "In this test": "It is an object." - } -} |