Add a precautionary assert to test function 'transform_list_json'

This commit is contained in:
Andrew Bettison 2018-03-26 22:36:31 +10:30
parent a82babf9db
commit b822378c37

View File

@ -268,4 +268,5 @@ transform_list_json() {
.["__index"] = $index
]
' "$1" >"$2"
assert --message="$1 contains a well-formed JSON list" [ $? -eq 0 -a -s "$2" ]
}