1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2026-04-20 19:17:24 +02:00

Add Jansson vendor library.

This commit is contained in:
Sandu Liviu Catalin
2021-07-06 17:16:28 +03:00
parent a268756153
commit e5e179e6ba
350 changed files with 18728 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
JSON_SORT_KEYS=1
+5
View File
@@ -0,0 +1,5 @@
[1,2,3,4,
"a", "b", "c",
{"foo": "bar", "core": "dump"},
true, false, true, true, null, false
]
+1
View File
@@ -0,0 +1 @@
[1, 2, 3, 4, "a", "b", "c", {"core": "dump", "foo": "bar"}, true, false, true, true, null, false]
+1
View File
@@ -0,0 +1 @@
[]
+1
View File
@@ -0,0 +1 @@
[]
@@ -0,0 +1 @@
[{}]
@@ -0,0 +1 @@
[{}]
+1
View File
@@ -0,0 +1 @@
{}
+1
View File
@@ -0,0 +1 @@
{}
+1
View File
@@ -0,0 +1 @@
[""]
+1
View File
@@ -0,0 +1 @@
[""]
@@ -0,0 +1 @@
["\u0012 escaped control character"]
@@ -0,0 +1 @@
["\u0012 escaped control character"]
+1
View File
@@ -0,0 +1 @@
[false]
+1
View File
@@ -0,0 +1 @@
[false]
+1
View File
@@ -0,0 +1 @@
[-123]
+1
View File
@@ -0,0 +1 @@
[-123]
+1
View File
@@ -0,0 +1 @@
[-1]
+1
View File
@@ -0,0 +1 @@
[-1]
+1
View File
@@ -0,0 +1 @@
[-0]
+1
View File
@@ -0,0 +1 @@
[0]
+1
View File
@@ -0,0 +1 @@
[null]
+1
View File
@@ -0,0 +1 @@
[null]
+1
View File
@@ -0,0 +1 @@
["\u002c one-byte UTF-8"]
@@ -0,0 +1 @@
[", one-byte UTF-8"]
@@ -0,0 +1 @@
[1E-2]
@@ -0,0 +1 @@
[0.01]
@@ -0,0 +1 @@
[1E+2]
@@ -0,0 +1 @@
[100.0]
+1
View File
@@ -0,0 +1 @@
[1E22]
@@ -0,0 +1 @@
[1e22]
+1
View File
@@ -0,0 +1 @@
[123e45]
+1
View File
@@ -0,0 +1 @@
[1.2299999999999999e47]
@@ -0,0 +1 @@
[123.456e78]
@@ -0,0 +1 @@
[1.23456e80]
@@ -0,0 +1 @@
[1e-2]
@@ -0,0 +1 @@
[0.01]
@@ -0,0 +1 @@
[1e+2]
@@ -0,0 +1 @@
[100.0]
@@ -0,0 +1 @@
[1.8011670033376514e-308]
@@ -0,0 +1 @@
[1.8011670033376514e-308]
+1
View File
@@ -0,0 +1 @@
[123e-10000000]
@@ -0,0 +1 @@
[0.0]
+56
View File
@@ -0,0 +1,56 @@
#!/bin/sh
#
# Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org>
#
# Jansson is free software; you can redistribute it and/or modify
# it under the terms of the MIT license. See LICENSE for details.
JSON_SORT_KEYS=1
export JSON_SORT_KEYS
is_test() {
test -d $test_path
}
do_run() {
variant=$1
s=".$1"
strip=0
[ "$variant" = "strip" ] && strip=1
STRIP=$strip $json_process --env \
<$test_path/input >$test_log/stdout$s 2>$test_log/stderr$s
valgrind_check $test_log/stderr$s || return 1
ref=output
[ -f $test_path/output$s ] && ref=output$s
if ! cmp -s $test_path/$ref $test_log/stdout$s; then
echo $variant > $test_log/variant
return 1
fi
}
run_test() {
do_run normal && do_run strip
}
show_error() {
valgrind_show_error && return
read variant < $test_log/variant
s=".$variant"
echo "VARIANT: $variant"
echo "EXPECTED OUTPUT:"
ref=output
[ -f $test_path/output$s ] && ref=output$s
nl -bn $test_path/$ref
echo "ACTUAL OUTPUT:"
nl -bn $test_log/stdout$s
}
. $top_srcdir/test/scripts/run-tests.sh
+1
View File
@@ -0,0 +1 @@
["a"]
+1
View File
@@ -0,0 +1 @@
["a"]
@@ -0,0 +1 @@
["abcdefghijklmnopqrstuvwxyz1234567890 "]
@@ -0,0 +1 @@
["abcdefghijklmnopqrstuvwxyz1234567890 "]
+1
View File
@@ -0,0 +1 @@
[0]
+1
View File
@@ -0,0 +1 @@
[0]
+1
View File
@@ -0,0 +1 @@
[1]
+1
View File
@@ -0,0 +1 @@
[1]
+1
View File
@@ -0,0 +1 @@
[123]
@@ -0,0 +1 @@
[123]
+1
View File
@@ -0,0 +1 @@
{"a":[]}
+1
View File
@@ -0,0 +1 @@
{"a": []}
+1
View File
@@ -0,0 +1 @@
[123.456789]
+1
View File
@@ -0,0 +1 @@
[123.456789]
+1
View File
@@ -0,0 +1 @@
["\"\\\/\b\f\n\r\t"]
@@ -0,0 +1 @@
["\"\\/\b\f\n\r\t"]
@@ -0,0 +1 @@
["\u0821 three-byte UTF-8"]
@@ -0,0 +1 @@
["ࠡ three-byte UTF-8"]
+1
View File
@@ -0,0 +1 @@
[true]
+1
View File
@@ -0,0 +1 @@
[true]
+1
View File
@@ -0,0 +1 @@
["\u0123 two-byte UTF-8"]
@@ -0,0 +1 @@
["ģ two-byte UTF-8"]
+1
View File
@@ -0,0 +1 @@
["€þıœəßð some utf-8 ĸʒ×ŋµåäö𝄞"]
+1
View File
@@ -0,0 +1 @@
["€þıœəßð some utf-8 ĸʒ×ŋµåäö𝄞"]
@@ -0,0 +1 @@
["\uD834\uDD1E surrogate, four-byte UTF-8"]
@@ -0,0 +1 @@
["𝄞 surrogate, four-byte UTF-8"]