Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
musalbas committed Jul 9, 2020
1 parent b36d8b2 commit dc0cbdb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions smt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,11 @@ func TestSparseMerkleTreeDeleteBasic(t *testing.T) {
if bytes.Compare(defaultValue, value) != 0 {
t.Error("did not get default value when getting deleted key")
}
value, err = smt.Get([]byte("testKey"))
if err != nil {
t.Errorf("returned error when getting non-empty key: %v", err)
}
if bytes.Compare([]byte("testValue"), value) != 0 {
t.Error("did not get correct value when getting non-empty key")
}
}

0 comments on commit dc0cbdb

Please sign in to comment.