Init
This commit is contained in:
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xed near '"'
|
||||
@ -0,0 +1 @@
|
||||
["<22><><EFBFBD> <-- encoded surrogate half"]
|
||||
@ -0,0 +1,2 @@
|
||||
1 3 3
|
||||
unable to decode byte 0xe5 near '"\'
|
||||
@ -0,0 +1 @@
|
||||
["\<5C>"]
|
||||
@ -0,0 +1,2 @@
|
||||
1 1 1
|
||||
unable to decode byte 0xe5
|
||||
@ -0,0 +1 @@
|
||||
[<5B>]
|
||||
@ -0,0 +1,2 @@
|
||||
1 4 4
|
||||
unable to decode byte 0xe5 near '123'
|
||||
@ -0,0 +1 @@
|
||||
[123<32>]
|
||||
@ -0,0 +1,2 @@
|
||||
1 4 4
|
||||
unable to decode byte 0xe5 near '"\u'
|
||||
@ -0,0 +1 @@
|
||||
["\u<>"]
|
||||
@ -0,0 +1,2 @@
|
||||
1 4 4
|
||||
unable to decode byte 0xe5 near '1e1'
|
||||
@ -0,0 +1 @@
|
||||
[1e1<65>]
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xe5 near 'a'
|
||||
@ -0,0 +1 @@
|
||||
[a<>]
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xe5 near '0'
|
||||
@ -0,0 +1 @@
|
||||
[0<>]
|
||||
@ -0,0 +1,2 @@
|
||||
1 3 3
|
||||
unable to decode byte 0xe5 near '1e'
|
||||
@ -0,0 +1 @@
|
||||
[1e<31>]
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xe5 near '"'
|
||||
@ -0,0 +1 @@
|
||||
["<22> <-- invalid UTF-8"]
|
||||
@ -0,0 +1,2 @@
|
||||
1 0 0
|
||||
unable to decode byte 0xe5
|
||||
@ -0,0 +1 @@
|
||||
<EFBFBD>
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0x81 near '"'
|
||||
@ -0,0 +1 @@
|
||||
["<22>"]
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xf4 near '"'
|
||||
@ -0,0 +1 @@
|
||||
["<22><><EFBFBD><EFBFBD>"]
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xe0 near '"'
|
||||
@ -0,0 +1 @@
|
||||
["<22><><EFBFBD> <-- overlong encoding"]
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xf0 near '"'
|
||||
@ -0,0 +1 @@
|
||||
["<22><><EFBFBD><EFBFBD> <-- overlong encoding"]
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xc1 near '"'
|
||||
@ -0,0 +1 @@
|
||||
["<22>"]
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xfd near '"'
|
||||
@ -0,0 +1 @@
|
||||
["<22>"]
|
||||
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2009-2012 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.
|
||||
|
||||
is_test() {
|
||||
test -d $test_path
|
||||
}
|
||||
|
||||
run_test() {
|
||||
$json_process <$test_path/input >$test_log/stdout 2>$test_log/stderr
|
||||
valgrind_check $test_log/stderr || return 1
|
||||
cmp -s $test_path/error $test_log/stderr
|
||||
}
|
||||
|
||||
show_error() {
|
||||
valgrind_show_error && return
|
||||
|
||||
echo "EXPECTED ERROR:"
|
||||
nl -bn $test_path/error
|
||||
echo "ACTUAL ERROR:"
|
||||
nl -bn $test_log/stderr
|
||||
}
|
||||
|
||||
. $top_srcdir/test/scripts/run-tests.sh
|
||||
@ -0,0 +1,2 @@
|
||||
1 2 2
|
||||
unable to decode byte 0xe0 near '"'
|
||||
@ -0,0 +1 @@
|
||||
["<22><> <-- truncated UTF-8"]
|
||||
Reference in New Issue
Block a user