From 6927f74b7aafc046bbca80ebe8658186149c598a Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 26 Sep 2018 15:44:55 +1000 Subject: [PATCH] add inverted Network mismatch tests --- test/fixtures/p2sh.json | 18 ++++++++++++++++++ test/fixtures/p2wsh.json | 9 +++++++++ 2 files changed, 27 insertions(+) diff --git a/test/fixtures/p2sh.json b/test/fixtures/p2sh.json index e6fe2ae..e447e4a 100644 --- a/test/fixtures/p2sh.json +++ b/test/fixtures/p2sh.json @@ -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", "arguments": { diff --git a/test/fixtures/p2wsh.json b/test/fixtures/p2wsh.json index 0870278..2dfec75 100644 --- a/test/fixtures/p2wsh.json +++ b/test/fixtures/p2wsh.json @@ -306,6 +306,15 @@ } } }, + { + "exception": "Network mismatch", + "arguments": { + "network": "testnet", + "redeem": { + "network": "bitcoin" + } + } + }, { "exception": "Invalid prefix or Network mismatch", "arguments": {