qemu-arm/test-frzmpy: Add test for freezing constant tuples.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
999abbb8b5
commit
abdc4ec08d
|
@ -0,0 +1,11 @@
|
|||
# Test freezing constants.
|
||||
|
||||
x0 = (1,)
|
||||
x1 = (1, 2)
|
||||
x2 = (1, 1 << 100)
|
||||
x3 = (None, False, True, ...)
|
||||
x4 = ("str", b"bytes")
|
||||
x5 = ((),)
|
||||
x6 = ((1,),)
|
||||
x7 = ((1, 2),)
|
||||
x8 = (1, "str", (), ("nested", 2, ((False, True), None, ...)))
|
Loading…
Reference in New Issue