mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
tests: Add tests for things that are not already tested.
The aim here is to improve coverage of the code.
This commit is contained in:
@@ -14,6 +14,13 @@ print(a, b)
|
||||
[a, b] = 100, 200
|
||||
print(a, b)
|
||||
|
||||
# optimised 3-way swap
|
||||
a = 1
|
||||
b = 2
|
||||
c = 3
|
||||
a, b, c = b, c, a
|
||||
print(a, b, c)
|
||||
|
||||
try:
|
||||
a, b, c = (1, 2)
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user