Add initial state/TestDump test

This commit is contained in:
Taylor Gerring 2014-11-12 22:03:03 +01:00
parent bd9bd4abed
commit fa59db7595
1 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,15 @@ var _ = checker.Suite(&StateSuite{})
// var ZeroHash256 = make([]byte, 32)
func (s *StateSuite) TestDump(c *checker.C) {
key := []byte{0x01}
value := "foo"
node := []interface{}{key, value}
s.state.Trie.Put(node)
dump := s.state.Dump()
c.Assert(dump, checker.NotNil)
}
func (s *StateSuite) SetUpTest(c *checker.C) {
db, _ := ethdb.NewMemDatabase()
ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")