aboutsummaryrefslogtreecommitdiffstats
path: root/tests/transaction_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-13 23:35:46 +0800
committerobscuren <geffobscura@gmail.com>2015-04-13 23:35:46 +0800
commit333e539ce2143e9f416cef45053c1c21ce0312d4 (patch)
treeda21c5ca613615f78e7475f67e743c6d9464d1cb /tests/transaction_test.go
parenta8a2b2a488f7433abc09c51b751556875c9107a9 (diff)
parent1fa844aaf51beae9129b52a52f51b6602c52ccdb (diff)
downloadgo-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.go44
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)
+ }
+}