Skip to content

Commit d1ef91d

Browse files
committed
Added tests for issue #439, global/const issues
1 parent 3314c0d commit d1ef91d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
114 Bytes
Binary file not shown.

test/simple_source/expression/05_long_literals.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,3 +725,10 @@
725725
}
726726

727727
assert sorted(values.values())[1:] == list(range(2, 34))
728+
729+
730+
# Check that we can distinguish names from strings in literal collections, e.g. lists.
731+
# The list has to have more than 4 items go get accumulated in a collection
732+
a = ["y", 'Exception', "x", Exception, "z"]
733+
assert a[1] == "Exception"
734+
assert a[3] == Exception

0 commit comments

Comments
 (0)