diff --git a/src/types/loopingcounter.zig b/src/types/loopingcounter.zig index 7f9053d..ac3a45c 100644 --- a/src/types/loopingcounter.zig +++ b/src/types/loopingcounter.zig @@ -40,3 +40,10 @@ test "looping test" { lc.next(); 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); +}