diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-13 23:35:46 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-13 23:35:46 +0800 |
commit | 333e539ce2143e9f416cef45053c1c21ce0312d4 (patch) | |
tree | da21c5ca613615f78e7475f67e743c6d9464d1cb /tests/transaction_test.go | |
parent | a8a2b2a488f7433abc09c51b751556875c9107a9 (diff) | |
parent | 1fa844aaf51beae9129b52a52f51b6602c52ccdb (diff) | |
download | go-tangerine-333e539ce2143e9f416cef45053c1c21ce0312d4.tar go-tangerine-333e539ce2143e9f416cef45053c1c21ce0312d4.tar.gz go-tangerine-333e539ce2143e9f416cef45053c1c21ce0312d4.tar.bz2 go-tangerine-333e539ce2143e9f416cef45053c1c21ce0312d4.tar.lz go-tangerine-333e539ce2143e9f416cef45053c1c21ce0312d4.tar.xz go-tangerine-333e539ce2143e9f416cef45053c1c21ce0312d4.tar.zst go-tangerine-333e539ce2143e9f416cef45053c1c21ce0312d4.zip |
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
Diffstat (limited to 'tests/transaction_test.go')
-rw-r--r-- | tests/transaction_test.go | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/transaction_test.go b/tests/transaction_test.go new file mode 100644 index 000000000..dabc7823b --- /dev/null +++ b/tests/transaction_test.go @@ -0,0 +1,44 @@ +package tests + +import ( + "testing" +) + +func TestTransactions(t *testing.T) { + notWorking := make(map[string]bool, 100) + // TODO: all commented out tests should work! + + snafus := []string{ + "EmptyTransaction", + "TransactionWithHihghNonce", + "TransactionWithRvalueWrongSize", + "TransactionWithSvalueHigh", + "TransactionWithSvalueTooHigh", + "TransactionWithSvalueWrongSize", + "ValuesAsDec", + "ValuesAsHex", + "libsecp256k1test", + "unpadedRValue", + } + + for _, name := range snafus { + notWorking[name] = true + } + + var err error + err = RunTransactionTests("./files/TransactionTests/ttTransactionTest.json", + notWorking) + if err != nil { + t.Fatal(err) + } +} + +func TestWrongRLPTransactions(t *testing.T) { + notWorking := make(map[string]bool, 100) + var err error + err = RunTransactionTests("./files/TransactionTests/ttWrongRLPTransaction.json", + notWorking) + if err != nil { + t.Fatal(err) + } +} |