mirror of
https://github.com/json-c/json-c.git
synced 2026-03-18 20:49:07 +08:00
This is particularly useful when replacing values in a loop, since it allows the key used by json_object_object_foreach to continue to be used.
13 lines
225 B
Bash
Executable File
13 lines
225 B
Bash
Executable File
#!/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 testReplaceExisting
|
|
exit $?
|