Fix tests

This commit is contained in:
Oystein Kristoffer Tveit 2021-03-26 12:53:58 +01:00
parent 18f243fe80
commit 4c9be54f64

View File

@ -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;
}