One more state test

This commit is contained in:
Neale Pickett 2019-12-05 21:54:32 -07:00
parent dc35217840
commit 3eac94c70d
1 changed files with 8 additions and 0 deletions

View File

@ -59,4 +59,12 @@ func TestState(t *testing.T) {
} else if (pl[0].TeamId != teamId) || (pl[0].Category != category) || (pl[0].Points != points) { } else if (pl[0].TeamId != teamId) || (pl[0].Category != category) || (pl[0].Points != points) {
t.Errorf("Incorrect logged award %v", pl) t.Errorf("Incorrect logged award %v", pl)
} }
fs.Remove("initialized")
s.Cleanup()
pl = s.PointsLog()
if len(pl) != 0 {
t.Errorf("After reinitialization, points log has length %d", len(pl))
}
} }