Skip to content

Commit dcda81c

Browse files
author
pierrenn
committed
test: add coverage for script parse error in ParseScript
1 parent 97b0687 commit dcda81c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/util/data/bitcoin-util-test.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@
218218
"output_cmp": "txcreate2.json",
219219
"description": "Parses a transaction with no inputs and a single output script (output in json)"
220220
},
221+
{ "exec": "./bitcoin-tx",
222+
"args": ["-create", "outscript=0:123badscript"],
223+
"return_code": 1,
224+
"error_txt": "error: script parse error",
225+
"description": "Create a new transaction with an invalid output script"
226+
},
221227
{ "exec": "./bitcoin-tx",
222228
"args": ["-create", "outscript=0:OP_DROP", "nversion=1"],
223229
"output_cmp": "txcreatescript1.hex",

0 commit comments

Comments
 (0)