diff options
author | pierrenn <git@pnn.sh> | 2020-03-27 12:10:31 +0900 |
---|---|---|
committer | pierrenn <git@pnn.sh> | 2020-03-27 12:10:31 +0900 |
commit | dcda81c47101196e53e379d965a2692515ef8363 (patch) | |
tree | 9456e80e02f28b9d039f201ecfb2fd8a34016e82 /test | |
parent | 97b0687501cee77a9170f9e288755a5d268e9bd4 (diff) |
test: add coverage for script parse error in ParseScript
Diffstat (limited to 'test')
-rw-r--r-- | test/util/data/bitcoin-util-test.json | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/util/data/bitcoin-util-test.json b/test/util/data/bitcoin-util-test.json index 761923a818..33899bc087 100644 --- a/test/util/data/bitcoin-util-test.json +++ b/test/util/data/bitcoin-util-test.json @@ -219,6 +219,12 @@ "description": "Parses a transaction with no inputs and a single output script (output in json)" }, { "exec": "./bitcoin-tx", + "args": ["-create", "outscript=0:123badscript"], + "return_code": 1, + "error_txt": "error: script parse error", + "description": "Create a new transaction with an invalid output script" + }, + { "exec": "./bitcoin-tx", "args": ["-create", "outscript=0:OP_DROP", "nversion=1"], "output_cmp": "txcreatescript1.hex", "description": "Create a new transaction with a single output script (OP_DROP)" |