aboutsummaryrefslogtreecommitdiffstats
path: root/state/state_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'state/state_test.go')
-rw-r--r--state/state_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/state/state_test.go b/state/state_test.go
index 8942f51ec..825d21fcc 100644
--- a/state/state_test.go
+++ b/state/state_test.go
@@ -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", "")