flocore/test
MattFaus a2a923fa99 Get Transaction test cases running
I removed the skip over the tx_valid.json file and made some tweaks to get most of the test cases passing.  There are still two test cases that fail, as pointed out by the TODO comment I added above them. Oddly, running the test suite reports 3 failing test cases, but if I delete the two marked with the TODO there are 0 reported failures. So, there may be some kind of interaction with these test cases and the others. More investigation is needed.

I updated the two test cases that were testing transaction `23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63` with the input script I found on blockchain.info https://blockchain.info/tx/23b397edccd3740a74adb603c9756370fafcde9bcc4483eb271ecad09a94dd63. A quick search found one other person who was using this same script (23b397edcc.json) and the test passes now, so I'm not sure why the old script was being used.

All of the other changes are simply re-formatting decimal numbers as hex (i.e. `1` => `0x01`).

Furthermore, I added some code in the test fixture itself to verify each of the inputs.

Test Plan:
`mocha -R spec test/test.Transaction.js`
2014-03-21 12:13:23 -07:00
..
data Get Transaction test cases running 2014-03-21 12:13:23 -07:00
adapter.js fixing testdata inclusion in browser 2014-03-10 14:55:30 -03:00
index.html configurable submodules for browser bundle 2014-03-11 18:17:03 -03:00
mocha.opts Bitcoin address tests, from bitcoin/bitcoin.git 2013-07-09 16:02:59 -04:00
mute.js add new example 2014-03-12 15:22:56 -03:00
test.Address.js fix Address validation issue 2014-03-19 18:44:24 -03:00
test.basic.js update interface, bitcore.KeyModule.Key -> bitcore.Key 2014-03-13 13:31:02 -04:00
test.Block.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.Bloom.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.Connection.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.EncodedData.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.examples.js invalid script test passing! 2014-03-19 12:26:36 -03:00
test.Key.js update interface, bitcore.KeyModule.Key -> bitcore.Key 2014-03-13 13:31:02 -04:00
test.main.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.misc.js fix private key validation and base58 invalid tests 2014-03-19 19:00:45 -03:00
test.Opcode.js fix skipped Opcode test 2014-03-19 18:10:04 -03:00
test.Peer.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.PeerManager.js merge master changes 2014-03-10 15:00:25 -03:00
test.PrivateKey.js add network detection in private key and tests 2014-03-15 18:49:48 -03:00
test.RpcClient.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.Script.js fixing testdata inclusion in browser 2014-03-10 14:55:30 -03:00
test.ScriptInterpreter.js invalid script test passing! 2014-03-19 12:26:36 -03:00
test.SIN.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.SINKey.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.Transaction.js Get Transaction test cases running 2014-03-21 12:13:23 -07:00
test.util.js uncomment some test cases! 2014-03-19 13:03:12 -03:00
test.VersionedData.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.Wallet.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.WalletKey.js remove PeerManager exception, no necesary anymore 2014-03-12 00:11:12 -03:00
testdata.js add base58key tests for Address case 2014-03-19 16:25:23 -03:00