mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 13:10:21 +01:00
tests: Add a few tests for bool, bytearray, float to improve coverage.
This commit is contained in:
@@ -25,3 +25,9 @@ for i in range(25):
|
||||
for j in range(25):
|
||||
y = (j - 12.5) / 6
|
||||
test(x, y)
|
||||
|
||||
# test division by zero error
|
||||
try:
|
||||
divmod(1.0, 0)
|
||||
except ZeroDivisionError:
|
||||
print('ZeroDivisionError')
|
||||
|
||||
Reference in New Issue
Block a user