Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-kent committed Apr 16, 2017
1 parent 970ad63 commit 3d193b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ func TestDeleteOne(t *testing.T) {
storage.DeleteOne("1")

if storage.Count() != 24 {
t.Errorf("storage.Count() expected: %d, got: %d", 0, storage.Count())
t.Errorf("storage.Count() expected: %d, got: %d", 24, storage.Count())
}

storage.DeleteOne("34789")

if storage.Count() != 23 {
t.Errorf("storage.Count() expected: %d, got: %d", 23, storage.Count())
}
}

0 comments on commit 3d193b9

Please sign in to comment.