From 321105ecbd02f110a4b5fc70f1e04340cc5ee57a Mon Sep 17 00:00:00 2001 From: namedkitten Date: Thu, 23 Jul 2020 15:03:18 +0100 Subject: [PATCH] Add another loopingcounter test. --- src/types/loopingcounter.zig | 7 +++++++ 1 file changed, 7 insertions(+) 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); +}