mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
16 lines
354 B
Bash
Executable File
16 lines
354 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${0%/*}/setup" "$@"
|
|
|
|
if [ "$(echo '{"hi":"there"/*comment*/}' | $VALGRIND $Q $JQ --strip-comments '.hi')" != '"there"' ]; then
|
|
echo "C-style comment test failed"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$(printf '{"hi"://comment\n"there"}' | $VALGRIND $Q $JQ --strip-comments '.hi')" != '"there"' ]; then
|
|
echo "C++-style comment test failed"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|