Skip to content

Commit 46fcfcd

Browse files
committed
Verification that a JSON and TOML dataset are identical
1 parent d4f998c commit 46fcfcd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
if (( $# != 2 )); then
4+
echo "Usage: $BASH_SOURCE <toml_file> <json_file>" >&2
5+
exit 1
6+
fi
7+
8+
diff \
9+
<(openpmd-convert_json_toml "@$(realpath "$1")" | jq -S .) \
10+
<(jq -S . < "$2")

0 commit comments

Comments
 (0)