mirror of
https://github.com/json-c/json-c.git
synced 2026-03-30 18:39:07 +08:00
Make default double serializer ignore userdata again
The user might want to use the userdata for something different, so the serializer should ignore it by default. Explicitly setting the serializer to json_object_double_to_json_string will still make it interpret the userdata as a format string.
This commit is contained in:
12
tests/test_double_serializer.test
Executable file
12
tests/test_double_serializer.test
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Common definitions
|
||||
if test -z "$srcdir"; then
|
||||
srcdir="${0%/*}"
|
||||
test "$srcdir" = "$0" && srcdir=.
|
||||
test -z "$srcdir" && srcdir=.
|
||||
fi
|
||||
. "$srcdir/test-defs.sh"
|
||||
|
||||
run_output_test test_double_serializer
|
||||
exit $?
|
||||
Reference in New Issue
Block a user