From 4c9be54f64d7deb8ca9935dcabccf6979ee38e59 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 26 Mar 2021 12:53:58 +0100 Subject: [PATCH] Fix tests --- src/main/java/stateandbehavior/StopWatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/stateandbehavior/StopWatch.java b/src/main/java/stateandbehavior/StopWatch.java index 0fa837b..d25b373 100644 --- a/src/main/java/stateandbehavior/StopWatch.java +++ b/src/main/java/stateandbehavior/StopWatch.java @@ -43,7 +43,7 @@ public class StopWatch { /** forteller klokken at ticks antall tikk har gått. */ public void tick(int ticks) { - // this.totalTicks += ticks; + this.totalTicks += ticks; if (this.hasBeenStarted ^ this.hasBeenStopped) this.totalTime += ticks; }