aboutsummaryrefslogtreecommitdiffstats
path: root/tests/transaction_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-16 07:14:27 +0800
committerobscuren <geffobscura@gmail.com>2015-04-16 07:28:24 +0800
commit3a51c3b584b16b408c3fbf87c4f9719fcfb1c52a (patch)
treeb2d4a5e7fcc1da2fd5b1aa3c139ddc7594c8646c /tests/transaction_test.go
parent97d2954e227049a089652d91e6fb0ea1c8115cc6 (diff)
parentc4678ffd77a18a9d03c888fdf242c9e5915b9f5f (diff)
downloadgo-tangerine-3a51c3b584b16b408c3fbf87c4f9719fcfb1c52a.tar
go-tangerine-3a51c3b584b16b408c3fbf87c4f9719fcfb1c52a.tar.gz
go-tangerine-3a51c3b584b16b408c3fbf87c4f9719fcfb1c52a.tar.bz2
go-tangerine-3a51c3b584b16b408c3fbf87c4f9719fcfb1c52a.tar.lz
go-tangerine-3a51c3b584b16b408c3fbf87c4f9719fcfb1c52a.tar.xz
go-tangerine-3a51c3b584b16b408c3fbf87c4f9719fcfb1c52a.tar.zst
go-tangerine-3a51c3b584b16b408c3fbf87c4f9719fcfb1c52a.zip
Merge branch 'develop' into downloader-proto
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)
+ }
+}