micropython: add micropython component
This commit is contained in:
14
components/language/micropython/tests/basics/floordivide.py
Normal file
14
components/language/micropython/tests/basics/floordivide.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# check modulo matches python definition
|
||||
|
||||
# This tests compiler version
|
||||
print(123 // 7)
|
||||
print(-123 // 7)
|
||||
print(123 // -7)
|
||||
print(-123 // -7)
|
||||
|
||||
a = 10000001
|
||||
b = 10000000
|
||||
print(a // b)
|
||||
print(a // -b)
|
||||
print(-a // b)
|
||||
print(-a // -b)
|
Reference in New Issue
Block a user