diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2014-11-13 05:03:03 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2014-11-13 05:03:03 +0800 |
commit | fa59db7595645f1ea9465cf46690379130c89370 (patch) | |
tree | b069f445525eb8780edeb50cb25c37692cae839b | |
parent | bd9bd4abed09a1ac7a686e9a61d925d1a69445a6 (diff) | |
download | go-tangerine-fa59db7595645f1ea9465cf46690379130c89370.tar.gz go-tangerine-fa59db7595645f1ea9465cf46690379130c89370.tar.zst go-tangerine-fa59db7595645f1ea9465cf46690379130c89370.zip |
Add initial state/TestDump test
-rw-r--r-- | state/state_test.go | 9 |
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", "") |