Added tests for issue #439, global/const issues

This commit is contained in:
Andre Eberle
2023-04-17 19:20:37 -04:00
parent 3314c0d222
commit d1ef91dd49
2 changed files with 7 additions and 0 deletions

View File

@@ -725,3 +725,10 @@ values = {
} }
assert sorted(values.values())[1:] == list(range(2, 34)) assert sorted(values.values())[1:] == list(range(2, 34))
# Check that we can distinguish names from strings in literal collections, e.g. lists.
# The list has to have more than 4 items go get accumulated in a collection
a = ["y", 'Exception', "x", Exception, "z"]
assert a[1] == "Exception"
assert a[3] == Exception