Add another loopingcounter test.
This commit is contained in:
parent
48cbb97935
commit
321105ecbd
|
@ -40,3 +40,10 @@ test "looping test" {
|
||||||
lc.next();
|
lc.next();
|
||||||
testing.expect(lc.get() == 0);
|
testing.expect(lc.get() == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test "0 value test" {
|
||||||
|
var lc = LoopingCounter(0).init();
|
||||||
|
testing.expect(lc.get() == 0);
|
||||||
|
lc.next();
|
||||||
|
testing.expect(lc.get() == 0);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue