aboutsummaryrefslogtreecommitdiffstats
path: root/tests/rlp_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-07-17 21:13:24 +0800
committerFelix Lange <fjl@twurst.com>2015-07-17 21:13:24 +0800
commit5da82077d1bd556a562568fe25c55996d0cdfb1c (patch)
tree19b70124c9187412385da13a5f5b72a114509522 /tests/rlp_test.go
parenta75b95b87612691a3e8f709e8c5739a2e7ac8b76 (diff)
downloaddexon-5da82077d1bd556a562568fe25c55996d0cdfb1c.tar
dexon-5da82077d1bd556a562568fe25c55996d0cdfb1c.tar.gz
dexon-5da82077d1bd556a562568fe25c55996d0cdfb1c.tar.bz2
dexon-5da82077d1bd556a562568fe25c55996d0cdfb1c.tar.lz
dexon-5da82077d1bd556a562568fe25c55996d0cdfb1c.tar.xz
dexon-5da82077d1bd556a562568fe25c55996d0cdfb1c.tar.zst
dexon-5da82077d1bd556a562568fe25c55996d0cdfb1c.zip
cmd/ethtest, tests: add support for RLP JSON tests
Diffstat (limited to 'tests/rlp_test.go')
-rw-r--r--tests/rlp_test.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/rlp_test.go b/tests/rlp_test.go
new file mode 100644
index 000000000..70bd19627
--- /dev/null
+++ b/tests/rlp_test.go
@@ -0,0 +1,20 @@
+package tests
+
+import (
+ "path/filepath"
+ "testing"
+)
+
+func TestRLP(t *testing.T) {
+ err := RunRLPTest(filepath.Join(rlpTestDir, "rlptest.json"), nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestRLP_invalid(t *testing.T) {
+ err := RunRLPTest(filepath.Join(rlpTestDir, "invalidRLPTest.json"), nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+}