mirror of https://github.com/dirtbags/moth.git
One more state test
This commit is contained in:
parent
dc35217840
commit
3eac94c70d
|
@ -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))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue