Files
.github
Godeps
_data
accounts
build
cmd
common
compression
console
containers
core
crypto
errs
eth
ethdb
event
generators
internal
light
logger
metrics
miner
node
p2p
params
pow
release
rlp
rpc
tests
files
block_test.go
block_test_util.go
init.go
rlp_test.go
rlp_test_util.go
state_test.go
state_test_util.go
transaction_test.go
transaction_test_util.go
util.go
vm_test.go
vm_test_util.go
trie
whisper
.gitattributes
.gitignore
.mailmap
.travis.yml
AUTHORS
COPYING
COPYING.LESSER
Makefile
README.md
VERSION
appveyor.yml
circle.yml
go-ethereum/tests/rlp_test.go

37 lines
1.1 KiB
Go
Raw Normal View History

// Copyright 2015 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The go-ethereum library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
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)
}
}