Skip to content

Commit b77b1a0

Browse files
committed
add unit tests for three uncovered cases
1 parent 970b554 commit b77b1a0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

test/fixtures/embed.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,36 @@
4444
"arguments": {
4545
"output": "OP_1 OP_2 OP_ADD"
4646
}
47+
},
48+
{
49+
"description": "Return value and data do not match",
50+
"exception": "Data mismatch",
51+
"options": {},
52+
"arguments": {
53+
"output": "OP_RETURN a3b147dbe4a85579fc4b5a1811e76620560e07267e62b9a0d6858f9127735cadd82f67e06c24dbc4",
54+
"data": [
55+
"a3b147dbe4a85579fc4b5a1855555555555555555555555555555555555555555555555555555555"
56+
]
57+
}
58+
},
59+
{
60+
"description": "Script length incorrect",
61+
"exception": "Data mismatch",
62+
"options": {},
63+
"arguments": {
64+
"output": "OP_RETURN a3b1 47db",
65+
"data": [
66+
"a3b1"
67+
]
68+
}
69+
},
70+
{
71+
"description": "Return data is not buffer",
72+
"exception": "Output is invalid",
73+
"options": {},
74+
"arguments": {
75+
"output": "OP_RETURN OP_1"
76+
}
4777
}
4878
],
4979
"dynamic": {

0 commit comments

Comments
 (0)