Basics. (#1116)
This commit is contained in:
parent
17f6d5208f
commit
daeca1bb18
|
@ -31,7 +31,7 @@ if(NOT(SIMDJSON_JUST_LIBRARY))
|
|||
add_subdirectory(jsonchecker)
|
||||
add_subdirectory(jsonexamples)
|
||||
add_library(test-data INTERFACE)
|
||||
target_link_libraries(test-data INTERFACE jsonchecker-data jsonexamples-data)
|
||||
target_link_libraries(test-data INTERFACE jsonchecker-data jsonchecker-minefield-data jsonexamples-data)
|
||||
endif()
|
||||
|
||||
#
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
set(SIMDJSON_TEST_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
|
||||
set(SIMDJSON_MINEFIELD_TEST_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
|
||||
|
||||
add_library(jsonchecker-data INTERFACE)
|
||||
target_compile_definitions(jsonchecker-data INTERFACE SIMDJSON_TEST_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/")
|
||||
|
||||
add_subdirectory(minefield)
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
set(SIMDJSON_MINEFIELD_TEST_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
|
||||
|
||||
add_library(jsonchecker-minefield-data INTERFACE)
|
||||
target_compile_definitions(jsonchecker-minefield-data INTERFACE SIMDJSON_MINEFIELD_TEST_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/")
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2016 Nicolas Seriot
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -0,0 +1 @@
|
|||
[123.456e-789]
|
|
@ -0,0 +1 @@
|
|||
[0.4e00669999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999969999999006]
|
|
@ -0,0 +1 @@
|
|||
[-1e+9999]
|
|
@ -0,0 +1 @@
|
|||
[1.5e+9999]
|
|
@ -0,0 +1 @@
|
|||
[-123123e100000]
|
|
@ -0,0 +1 @@
|
|||
[123123e100000]
|
|
@ -0,0 +1 @@
|
|||
[123e-10000000]
|
|
@ -0,0 +1 @@
|
|||
[-123123123123123123123123123123]
|
|
@ -0,0 +1 @@
|
|||
[100000000000000000000]
|
|
@ -0,0 +1 @@
|
|||
[-237462374673276894279832749832423479823246327846]
|
|
@ -0,0 +1 @@
|
|||
{"\uDFAA":0}
|
|
@ -0,0 +1 @@
|
|||
["\uDADA"]
|
|
@ -0,0 +1 @@
|
|||
["\uD888\u1234"]
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
["譌・ム淫"]
|
|
@ -0,0 +1 @@
|
|||
["<22><><EFBFBD>"]
|
|
@ -0,0 +1 @@
|
|||
["\uD800\n"]
|
|
@ -0,0 +1 @@
|
|||
["\uDd1ea"]
|
|
@ -0,0 +1 @@
|
|||
["\uD800\uD800\n"]
|
|
@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|
|||
[NaN]
|
|
@ -0,0 +1 @@
|
|||
[1]
|
|
@ -0,0 +1 @@
|
|||
[1+2]
|
|
@ -0,0 +1 @@
|
|||
[0x1]
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue