tests: Make tests work on targets without float support.

This commit is contained in:
Ayke van Laethem
2018-07-22 16:19:22 +02:00
committed by Damien George
parent 7be5bb3672
commit 6572029dc0
5 changed files with 31 additions and 13 deletions

View File

@@ -37,7 +37,7 @@ print(2 + 2 * 2)
# BAD: (-2)**2 = 4
print(-2**2)
# OK: 2**(-1) = 0.5
print(2**-1)
print(2**-0)
# (expr...)
print((2 + 2) * 2)