good morning!!!!

Skip to content
Snippets Groups Projects
Commit fa59db75 authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Add initial state/TestDump test

parent bd9bd4ab
No related branches found
No related tags found
Loading
......@@ -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", "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment