mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
Introduce structure to the test/ directory
This introduces a clear separation between test data and test binaries. Test data is moved into test/data, and the test binaries move into test/src. A new CMake script specific to building the tests is introduced in /test to slightly clean up the toplevel one. As well as tidying things up, this makes the next step trivial...
This commit is contained in:
22
test/data/json.org/1.json
Normal file
22
test/data/json.org/1.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"glossary": {
|
||||
"title": "example glossary",
|
||||
"GlossDiv": {
|
||||
"title": "S",
|
||||
"GlossList": {
|
||||
"GlossEntry": {
|
||||
"ID": "SGML",
|
||||
"SortAs": "SGML",
|
||||
"GlossTerm": "Standard Generalized Markup Language",
|
||||
"Acronym": "SGML",
|
||||
"Abbrev": "ISO 8879:1986",
|
||||
"GlossDef": {
|
||||
"para": "A meta-markup language, used to create markup languages such as DocBook.",
|
||||
"GlossSeeAlso": ["GML", "XML"]
|
||||
},
|
||||
"GlossSee": "markup"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
11
test/data/json.org/2.json
Normal file
11
test/data/json.org/2.json
Normal file
@ -0,0 +1,11 @@
|
||||
{"menu": {
|
||||
"id": "file",
|
||||
"value": "File",
|
||||
"popup": {
|
||||
"menuitem": [
|
||||
{"value": "New", "onclick": "CreateNewDoc()"},
|
||||
{"value": "Open", "onclick": "OpenDoc()"},
|
||||
{"value": "Close", "onclick": "CloseDoc()"}
|
||||
]
|
||||
}
|
||||
}}
|
26
test/data/json.org/3.json
Normal file
26
test/data/json.org/3.json
Normal file
@ -0,0 +1,26 @@
|
||||
{"widget": {
|
||||
"debug": "on",
|
||||
"window": {
|
||||
"title": "Sample Konfabulator Widget",
|
||||
"name": "main_window",
|
||||
"width": 500,
|
||||
"height": 500
|
||||
},
|
||||
"image": {
|
||||
"src": "Images/Sun.png",
|
||||
"name": "sun1",
|
||||
"hOffset": 250,
|
||||
"vOffset": 250,
|
||||
"alignment": "center"
|
||||
},
|
||||
"text": {
|
||||
"data": "Click Here",
|
||||
"size": 36,
|
||||
"style": "bold",
|
||||
"name": "text1",
|
||||
"hOffset": 250,
|
||||
"vOffset": 100,
|
||||
"alignment": "center",
|
||||
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
|
||||
}
|
||||
}}
|
88
test/data/json.org/4.json
Normal file
88
test/data/json.org/4.json
Normal file
@ -0,0 +1,88 @@
|
||||
{"web-app": {
|
||||
"servlet": [
|
||||
{
|
||||
"servlet-name": "cofaxCDS",
|
||||
"servlet-class": "org.cofax.cds.CDSServlet",
|
||||
"init-param": {
|
||||
"configGlossary:installationAt": "Philadelphia, PA",
|
||||
"configGlossary:adminEmail": "ksm@pobox.com",
|
||||
"configGlossary:poweredBy": "Cofax",
|
||||
"configGlossary:poweredByIcon": "/images/cofax.gif",
|
||||
"configGlossary:staticPath": "/content/static",
|
||||
"templateProcessorClass": "org.cofax.WysiwygTemplate",
|
||||
"templateLoaderClass": "org.cofax.FilesTemplateLoader",
|
||||
"templatePath": "templates",
|
||||
"templateOverridePath": "",
|
||||
"defaultListTemplate": "listTemplate.htm",
|
||||
"defaultFileTemplate": "articleTemplate.htm",
|
||||
"useJSP": false,
|
||||
"jspListTemplate": "listTemplate.jsp",
|
||||
"jspFileTemplate": "articleTemplate.jsp",
|
||||
"cachePackageTagsTrack": 200,
|
||||
"cachePackageTagsStore": 200,
|
||||
"cachePackageTagsRefresh": 60,
|
||||
"cacheTemplatesTrack": 100,
|
||||
"cacheTemplatesStore": 50,
|
||||
"cacheTemplatesRefresh": 15,
|
||||
"cachePagesTrack": 200,
|
||||
"cachePagesStore": 100,
|
||||
"cachePagesRefresh": 10,
|
||||
"cachePagesDirtyRead": 10,
|
||||
"searchEngineListTemplate": "forSearchEnginesList.htm",
|
||||
"searchEngineFileTemplate": "forSearchEngines.htm",
|
||||
"searchEngineRobotsDb": "WEB-INF/robots.db",
|
||||
"useDataStore": true,
|
||||
"dataStoreClass": "org.cofax.SqlDataStore",
|
||||
"redirectionClass": "org.cofax.SqlRedirection",
|
||||
"dataStoreName": "cofax",
|
||||
"dataStoreDriver": "com.microsoft.jdbc.sqlserver.SQLServerDriver",
|
||||
"dataStoreUrl": "jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon",
|
||||
"dataStoreUser": "sa",
|
||||
"dataStorePassword": "dataStoreTestQuery",
|
||||
"dataStoreTestQuery": "SET NOCOUNT ON;select test='test';",
|
||||
"dataStoreLogFile": "/usr/local/tomcat/logs/datastore.log",
|
||||
"dataStoreInitConns": 10,
|
||||
"dataStoreMaxConns": 100,
|
||||
"dataStoreConnUsageLimit": 100,
|
||||
"dataStoreLogLevel": "debug",
|
||||
"maxUrlLength": 500}},
|
||||
{
|
||||
"servlet-name": "cofaxEmail",
|
||||
"servlet-class": "org.cofax.cds.EmailServlet",
|
||||
"init-param": {
|
||||
"mailHost": "mail1",
|
||||
"mailHostOverride": "mail2"}},
|
||||
{
|
||||
"servlet-name": "cofaxAdmin",
|
||||
"servlet-class": "org.cofax.cds.AdminServlet"},
|
||||
|
||||
{
|
||||
"servlet-name": "fileServlet",
|
||||
"servlet-class": "org.cofax.cds.FileServlet"},
|
||||
{
|
||||
"servlet-name": "cofaxTools",
|
||||
"servlet-class": "org.cofax.cms.CofaxToolsServlet",
|
||||
"init-param": {
|
||||
"templatePath": "toolstemplates/",
|
||||
"log": 1,
|
||||
"logLocation": "/usr/local/tomcat/logs/CofaxTools.log",
|
||||
"logMaxSize": "",
|
||||
"dataLog": 1,
|
||||
"dataLogLocation": "/usr/local/tomcat/logs/dataLog.log",
|
||||
"dataLogMaxSize": "",
|
||||
"removePageCache": "/content/admin/remove?cache=pages&id=",
|
||||
"removeTemplateCache": "/content/admin/remove?cache=templates&id=",
|
||||
"fileTransferFolder": "/usr/local/tomcat/webapps/content/fileTransferFolder",
|
||||
"lookInContext": 1,
|
||||
"adminGroupID": 4,
|
||||
"betaServer": true}}],
|
||||
"servlet-mapping": {
|
||||
"cofaxCDS": "/",
|
||||
"cofaxEmail": "/cofaxutil/aemail/*",
|
||||
"cofaxAdmin": "/admin/*",
|
||||
"fileServlet": "/static/*",
|
||||
"cofaxTools": "/tools/*"},
|
||||
|
||||
"taglib": {
|
||||
"taglib-uri": "cofax.tld",
|
||||
"taglib-location": "/WEB-INF/tlds/cofax.tld"}}}
|
27
test/data/json.org/5.json
Normal file
27
test/data/json.org/5.json
Normal file
@ -0,0 +1,27 @@
|
||||
{"menu": {
|
||||
"header": "SVG Viewer",
|
||||
"items": [
|
||||
{"id": "Open"},
|
||||
{"id": "OpenNew", "label": "Open New"},
|
||||
null,
|
||||
{"id": "ZoomIn", "label": "Zoom In"},
|
||||
{"id": "ZoomOut", "label": "Zoom Out"},
|
||||
{"id": "OriginalView", "label": "Original View"},
|
||||
null,
|
||||
{"id": "Quality"},
|
||||
{"id": "Pause"},
|
||||
{"id": "Mute"},
|
||||
null,
|
||||
{"id": "Find", "label": "Find..."},
|
||||
{"id": "FindAgain", "label": "Find Again"},
|
||||
{"id": "Copy"},
|
||||
{"id": "CopyAgain", "label": "Copy Again"},
|
||||
{"id": "CopySVG", "label": "Copy SVG"},
|
||||
{"id": "ViewSVG", "label": "View SVG"},
|
||||
{"id": "ViewSource", "label": "View Source"},
|
||||
{"id": "SaveAs", "label": "Save As"},
|
||||
null,
|
||||
{"id": "Help"},
|
||||
{"id": "About", "label": "About Adobe CVG Viewer..."}
|
||||
]
|
||||
}}
|
1112067
test/data/json_nlohmann_tests/all_unicode.json
Normal file
1112067
test/data/json_nlohmann_tests/all_unicode.json
Normal file
File diff suppressed because it is too large
Load Diff
3
test/data/json_nlohmann_tests/bom.json
Normal file
3
test/data/json_nlohmann_tests/bom.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo": true
|
||||
}
|
1
test/data/json_roundtrip/roundtrip01.json
Normal file
1
test/data/json_roundtrip/roundtrip01.json
Normal file
@ -0,0 +1 @@
|
||||
[null]
|
1
test/data/json_roundtrip/roundtrip02.json
Normal file
1
test/data/json_roundtrip/roundtrip02.json
Normal file
@ -0,0 +1 @@
|
||||
[true]
|
1
test/data/json_roundtrip/roundtrip03.json
Normal file
1
test/data/json_roundtrip/roundtrip03.json
Normal file
@ -0,0 +1 @@
|
||||
[false]
|
1
test/data/json_roundtrip/roundtrip04.json
Normal file
1
test/data/json_roundtrip/roundtrip04.json
Normal file
@ -0,0 +1 @@
|
||||
[0]
|
1
test/data/json_roundtrip/roundtrip05.json
Normal file
1
test/data/json_roundtrip/roundtrip05.json
Normal file
@ -0,0 +1 @@
|
||||
["foo"]
|
1
test/data/json_roundtrip/roundtrip06.json
Normal file
1
test/data/json_roundtrip/roundtrip06.json
Normal file
@ -0,0 +1 @@
|
||||
[]
|
1
test/data/json_roundtrip/roundtrip07.json
Normal file
1
test/data/json_roundtrip/roundtrip07.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
1
test/data/json_roundtrip/roundtrip08.json
Normal file
1
test/data/json_roundtrip/roundtrip08.json
Normal file
@ -0,0 +1 @@
|
||||
[0,1]
|
1
test/data/json_roundtrip/roundtrip09.json
Normal file
1
test/data/json_roundtrip/roundtrip09.json
Normal file
@ -0,0 +1 @@
|
||||
{"foo":"bar"}
|
1
test/data/json_roundtrip/roundtrip10.json
Normal file
1
test/data/json_roundtrip/roundtrip10.json
Normal file
@ -0,0 +1 @@
|
||||
{"a":null,"foo":"bar"}
|
1
test/data/json_roundtrip/roundtrip11.json
Normal file
1
test/data/json_roundtrip/roundtrip11.json
Normal file
@ -0,0 +1 @@
|
||||
[-1]
|
1
test/data/json_roundtrip/roundtrip12.json
Normal file
1
test/data/json_roundtrip/roundtrip12.json
Normal file
@ -0,0 +1 @@
|
||||
[-2147483648]
|
1
test/data/json_roundtrip/roundtrip13.json
Normal file
1
test/data/json_roundtrip/roundtrip13.json
Normal file
@ -0,0 +1 @@
|
||||
[-1234567890123456789]
|
1
test/data/json_roundtrip/roundtrip14.json
Normal file
1
test/data/json_roundtrip/roundtrip14.json
Normal file
@ -0,0 +1 @@
|
||||
[-9223372036854775808]
|
1
test/data/json_roundtrip/roundtrip15.json
Normal file
1
test/data/json_roundtrip/roundtrip15.json
Normal file
@ -0,0 +1 @@
|
||||
[1]
|
1
test/data/json_roundtrip/roundtrip16.json
Normal file
1
test/data/json_roundtrip/roundtrip16.json
Normal file
@ -0,0 +1 @@
|
||||
[2147483647]
|
1
test/data/json_roundtrip/roundtrip17.json
Normal file
1
test/data/json_roundtrip/roundtrip17.json
Normal file
@ -0,0 +1 @@
|
||||
[4294967295]
|
1
test/data/json_roundtrip/roundtrip18.json
Normal file
1
test/data/json_roundtrip/roundtrip18.json
Normal file
@ -0,0 +1 @@
|
||||
[1234567890123456789]
|
1
test/data/json_roundtrip/roundtrip19.json
Normal file
1
test/data/json_roundtrip/roundtrip19.json
Normal file
@ -0,0 +1 @@
|
||||
[9223372036854775807]
|
1
test/data/json_roundtrip/roundtrip20.json
Normal file
1
test/data/json_roundtrip/roundtrip20.json
Normal file
@ -0,0 +1 @@
|
||||
[0.0]
|
1
test/data/json_roundtrip/roundtrip21.json
Normal file
1
test/data/json_roundtrip/roundtrip21.json
Normal file
@ -0,0 +1 @@
|
||||
[-0.0]
|
1
test/data/json_roundtrip/roundtrip22.json
Normal file
1
test/data/json_roundtrip/roundtrip22.json
Normal file
@ -0,0 +1 @@
|
||||
[1.2345]
|
1
test/data/json_roundtrip/roundtrip23.json
Normal file
1
test/data/json_roundtrip/roundtrip23.json
Normal file
@ -0,0 +1 @@
|
||||
[-1.2345]
|
1
test/data/json_roundtrip/roundtrip24.json
Normal file
1
test/data/json_roundtrip/roundtrip24.json
Normal file
@ -0,0 +1 @@
|
||||
[5e-324]
|
1
test/data/json_roundtrip/roundtrip25.json
Normal file
1
test/data/json_roundtrip/roundtrip25.json
Normal file
@ -0,0 +1 @@
|
||||
[2.225073858507201e-308]
|
1
test/data/json_roundtrip/roundtrip26.json
Normal file
1
test/data/json_roundtrip/roundtrip26.json
Normal file
@ -0,0 +1 @@
|
||||
[2.2250738585072014e-308]
|
1
test/data/json_roundtrip/roundtrip27.json
Normal file
1
test/data/json_roundtrip/roundtrip27.json
Normal file
@ -0,0 +1 @@
|
||||
[1.7976931348623157e308]
|
1
test/data/json_roundtrip/roundtrip28.json
Normal file
1
test/data/json_roundtrip/roundtrip28.json
Normal file
@ -0,0 +1 @@
|
||||
[4.940656458412e-324]
|
1
test/data/json_roundtrip/roundtrip29.json
Normal file
1
test/data/json_roundtrip/roundtrip29.json
Normal file
@ -0,0 +1 @@
|
||||
[2.2250738585072e-308]
|
1
test/data/json_roundtrip/roundtrip30.json
Normal file
1
test/data/json_roundtrip/roundtrip30.json
Normal file
@ -0,0 +1 @@
|
||||
[1.2345E-30]
|
1
test/data/json_roundtrip/roundtrip31.json
Normal file
1
test/data/json_roundtrip/roundtrip31.json
Normal file
@ -0,0 +1 @@
|
||||
[1.2345E+30]
|
1
test/data/json_roundtrip/roundtrip32.json
Normal file
1
test/data/json_roundtrip/roundtrip32.json
Normal file
@ -0,0 +1 @@
|
||||
[1.2345e+30]
|
1
test/data/json_tests/fail1.json
Normal file
1
test/data/json_tests/fail1.json
Normal file
@ -0,0 +1 @@
|
||||
"A JSON payload should be an object or array, not a string."
|
1
test/data/json_tests/fail10.json
Normal file
1
test/data/json_tests/fail10.json
Normal file
@ -0,0 +1 @@
|
||||
{"Extra value after close": true} "misplaced quoted value"
|
1
test/data/json_tests/fail11.json
Normal file
1
test/data/json_tests/fail11.json
Normal file
@ -0,0 +1 @@
|
||||
{"Illegal expression": 1 + 2}
|
1
test/data/json_tests/fail12.json
Normal file
1
test/data/json_tests/fail12.json
Normal file
@ -0,0 +1 @@
|
||||
{"Illegal invocation": alert()}
|
1
test/data/json_tests/fail13.json
Normal file
1
test/data/json_tests/fail13.json
Normal file
@ -0,0 +1 @@
|
||||
{"Numbers cannot have leading zeroes": 013}
|
1
test/data/json_tests/fail14.json
Normal file
1
test/data/json_tests/fail14.json
Normal file
@ -0,0 +1 @@
|
||||
{"Numbers cannot be hex": 0x14}
|
1
test/data/json_tests/fail15.json
Normal file
1
test/data/json_tests/fail15.json
Normal file
@ -0,0 +1 @@
|
||||
["Illegal backslash escape: \x15"]
|
1
test/data/json_tests/fail16.json
Normal file
1
test/data/json_tests/fail16.json
Normal file
@ -0,0 +1 @@
|
||||
[\naked]
|
1
test/data/json_tests/fail17.json
Normal file
1
test/data/json_tests/fail17.json
Normal file
@ -0,0 +1 @@
|
||||
["Illegal backslash escape: \017"]
|
1
test/data/json_tests/fail18.json
Normal file
1
test/data/json_tests/fail18.json
Normal file
@ -0,0 +1 @@
|
||||
[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]
|
1
test/data/json_tests/fail19.json
Normal file
1
test/data/json_tests/fail19.json
Normal file
@ -0,0 +1 @@
|
||||
{"Missing colon" null}
|
1
test/data/json_tests/fail2.json
Normal file
1
test/data/json_tests/fail2.json
Normal file
@ -0,0 +1 @@
|
||||
["Unclosed array"
|
1
test/data/json_tests/fail20.json
Normal file
1
test/data/json_tests/fail20.json
Normal file
@ -0,0 +1 @@
|
||||
{"Double colon":: null}
|
1
test/data/json_tests/fail21.json
Normal file
1
test/data/json_tests/fail21.json
Normal file
@ -0,0 +1 @@
|
||||
{"Comma instead of colon", null}
|
1
test/data/json_tests/fail22.json
Normal file
1
test/data/json_tests/fail22.json
Normal file
@ -0,0 +1 @@
|
||||
["Colon instead of comma": false]
|
1
test/data/json_tests/fail23.json
Normal file
1
test/data/json_tests/fail23.json
Normal file
@ -0,0 +1 @@
|
||||
["Bad value", truth]
|
1
test/data/json_tests/fail24.json
Normal file
1
test/data/json_tests/fail24.json
Normal file
@ -0,0 +1 @@
|
||||
['single quote']
|
1
test/data/json_tests/fail25.json
Normal file
1
test/data/json_tests/fail25.json
Normal file
@ -0,0 +1 @@
|
||||
[" tab character in string "]
|
1
test/data/json_tests/fail26.json
Normal file
1
test/data/json_tests/fail26.json
Normal file
@ -0,0 +1 @@
|
||||
["tab\ character\ in\ string\ "]
|
2
test/data/json_tests/fail27.json
Normal file
2
test/data/json_tests/fail27.json
Normal file
@ -0,0 +1,2 @@
|
||||
["line
|
||||
break"]
|
2
test/data/json_tests/fail28.json
Normal file
2
test/data/json_tests/fail28.json
Normal file
@ -0,0 +1,2 @@
|
||||
["line\
|
||||
break"]
|
1
test/data/json_tests/fail29.json
Normal file
1
test/data/json_tests/fail29.json
Normal file
@ -0,0 +1 @@
|
||||
[0e]
|
1
test/data/json_tests/fail3.json
Normal file
1
test/data/json_tests/fail3.json
Normal file
@ -0,0 +1 @@
|
||||
{unquoted_key: "keys must be quoted"}
|
1
test/data/json_tests/fail30.json
Normal file
1
test/data/json_tests/fail30.json
Normal file
@ -0,0 +1 @@
|
||||
[0e+]
|
1
test/data/json_tests/fail31.json
Normal file
1
test/data/json_tests/fail31.json
Normal file
@ -0,0 +1 @@
|
||||
[0e+-1]
|
1
test/data/json_tests/fail32.json
Normal file
1
test/data/json_tests/fail32.json
Normal file
@ -0,0 +1 @@
|
||||
{"Comma instead if closing brace": true,
|
1
test/data/json_tests/fail33.json
Normal file
1
test/data/json_tests/fail33.json
Normal file
@ -0,0 +1 @@
|
||||
["mismatch"}
|
1
test/data/json_tests/fail4.json
Normal file
1
test/data/json_tests/fail4.json
Normal file
@ -0,0 +1 @@
|
||||
["extra comma",]
|
1
test/data/json_tests/fail5.json
Normal file
1
test/data/json_tests/fail5.json
Normal file
@ -0,0 +1 @@
|
||||
["double extra comma",,]
|
1
test/data/json_tests/fail6.json
Normal file
1
test/data/json_tests/fail6.json
Normal file
@ -0,0 +1 @@
|
||||
[ , "<-- missing value"]
|
1
test/data/json_tests/fail7.json
Normal file
1
test/data/json_tests/fail7.json
Normal file
@ -0,0 +1 @@
|
||||
["Comma after the close"],
|
1
test/data/json_tests/fail8.json
Normal file
1
test/data/json_tests/fail8.json
Normal file
@ -0,0 +1 @@
|
||||
["Extra close"]]
|
1
test/data/json_tests/fail9.json
Normal file
1
test/data/json_tests/fail9.json
Normal file
@ -0,0 +1 @@
|
||||
{"Extra comma": true,}
|
58
test/data/json_tests/pass1.json
Normal file
58
test/data/json_tests/pass1.json
Normal file
@ -0,0 +1,58 @@
|
||||
[
|
||||
"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"]
|
1
test/data/json_tests/pass2.json
Normal file
1
test/data/json_tests/pass2.json
Normal file
@ -0,0 +1 @@
|
||||
[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
|
6
test/data/json_tests/pass3.json
Normal file
6
test/data/json_tests/pass3.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"JSON Test Pattern pass3": {
|
||||
"The outermost value": "must be an object or array.",
|
||||
"In this test": "It is an object."
|
||||
}
|
||||
}
|
10
test/data/json_testsuite/README.md
Normal file
10
test/data/json_testsuite/README.md
Normal file
@ -0,0 +1,10 @@
|
||||
# json-test-suite
|
||||
|
||||
## Source
|
||||
|
||||
https://code.google.com/p/json-test-suite/downloads/detail?name=sample.zip&can=2&q=
|
||||
|
||||
## License
|
||||
|
||||
Apache License Version 2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
3315
test/data/json_testsuite/sample.json
Normal file
3315
test/data/json_testsuite/sample.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user