add inverted Network mismatch tests
This commit is contained in:
parent
df2a66c852
commit
6927f74b7a
2 changed files with 27 additions and 0 deletions
test/fixtures
18
test/fixtures/p2sh.json
vendored
18
test/fixtures/p2sh.json
vendored
|
@ -325,6 +325,24 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"exception": "Network mismatch",
|
||||||
|
"arguments": {
|
||||||
|
"network": "bitcoin",
|
||||||
|
"redeem": {
|
||||||
|
"network": "testnet"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"exception": "Network mismatch",
|
||||||
|
"arguments": {
|
||||||
|
"network": "testnet",
|
||||||
|
"redeem": {
|
||||||
|
"network": "bitcoin"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"exception": "Empty input",
|
"exception": "Empty input",
|
||||||
"arguments": {
|
"arguments": {
|
||||||
|
|
9
test/fixtures/p2wsh.json
vendored
9
test/fixtures/p2wsh.json
vendored
|
@ -306,6 +306,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"exception": "Network mismatch",
|
||||||
|
"arguments": {
|
||||||
|
"network": "testnet",
|
||||||
|
"redeem": {
|
||||||
|
"network": "bitcoin"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"exception": "Invalid prefix or Network mismatch",
|
"exception": "Invalid prefix or Network mismatch",
|
||||||
"arguments": {
|
"arguments": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue