Initial pass at tests

This commit is contained in:
Ebag333
2017-02-20 16:35:53 -08:00
parent e51ca85e26
commit cdbf4cf5ec
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
from eos.mathUtils import floorFloat
def test_floorFloat():
assert type(floorFloat(1)) is not float
assert type(floorFloat(1)) is int
assert type(floorFloat(1.1)) is not float
assert type(floorFloat(1.1)) is int
assert floorFloat(1.1) == 1
assert floorFloat(1.9) == 1
assert floorFloat(1.5) == 1
assert floorFloat(-1.5) == -1