blob: a365ea660a873a4f74a54eb123841eeeb4be7e59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import unittest
import pygame
from pathlib import Path
from sliceitoff.stats import Stats
from sliceitoff.status import Status
class TestStatus(unittest.TestCase):
def setUp(self):
self.stats = Stats()
self.status = Status( stats = self.stats)
def test_can_create(self):
self.assertNotEqual(None, self.status)
def test_updating_without_crash(self):
for _ in range(100):
self.status.update(dt=100)
for _ in range(100):
self.stats.add_score(100)
self.stats.percent -= 1
self.status.update(dt=100)
|