We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398b0e8 commit 64f4bfaCopy full SHA for 64f4bfa
graalpython/com.oracle.graal.python.test/src/tests/test_assign.py
@@ -58,6 +58,7 @@ def varfunc():
58
assert 'x' in var
59
assert var['x'] == 10
60
61
+
62
global_var = {}
63
64
@@ -70,3 +71,17 @@ def test_assign_nonlocal_func_return():
70
71
72
assert 'x' in global_var
73
assert global_var['x'] == 10
74
75
76
+def test_destructuring():
77
+ a, b = (1, 2)
78
+ assert a == 1 and b == 2
79
80
+ a, b, c = "\xe0\xdf\xe7"
81
+ assert a == "à" and b == "ß" and c == "ç"
82
83
+ a, b, c = "\u0430\u0431\u0432"
84
+ assert a == 'а' and b == 'б' and c == 'в'
85
+ # TODO not supported yet
86
+# a, b, c = "\U0001d49c\U0001d49e\U0001d4b5"
87
+# assert a == '𝒜' and b == '𝒞' and c == '𝒵'
0 commit comments