cmd/ethtest, tests: add support for RLP JSON tests

This commit is contained in:
Felix Lange
2015-07-17 15:13:24 +02:00
parent a75b95b876
commit 5da82077d1
4 changed files with 180 additions and 1 deletions

20
tests/rlp_test.go Normal file
View File

@ -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)
}
}