Add some tests and an input duplicate checker

This commit is contained in:
junderw 2019-07-05 16:42:13 +09:00
parent 93e1661c6c
commit 8d52ce1668
No known key found for this signature in database
GPG key ID: B256185D3A971908
5 changed files with 228 additions and 36 deletions
test/fixtures

View file

@ -304,6 +304,37 @@
}
]
},
"addInput": {
"checks": [
{
"description": "checks for hash and index",
"inputData": {
"hash": 42
},
"exception": "Error adding input."
},
{
"description": "checks for hash and index",
"inputData": {
"hash": "000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f",
"index": 2
},
"equals": "cHNidP8BADMCAAAAAQABAgMEBQYHCAkKCwwNDg8AAQIDBAUGBwgJCgsMDQ4PAgAAAAD/////AAAAAAAAAAA="
}
]
},
"addOutput": {
"checks": [
{
"description": "checks for hash and index",
"outputData": {
"address": "1P2NFEBp32V2arRwZNww6tgXEV58FG94mr",
"value": "xyz"
},
"exception": "Error adding output."
}
]
},
"signInput": {
"checks": [
{