From fa59db7595645f1ea9465cf46690379130c89370 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Wed, 12 Nov 2014 22:03:03 +0100 Subject: Add initial state/TestDump test --- state/state_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) 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", "") -- cgit v1.2.3