diff options
Diffstat (limited to 'Examples/test-suite/python/li_std_set_runme.py')
-rw-r--r-- | Examples/test-suite/python/li_std_set_runme.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Examples/test-suite/python/li_std_set_runme.py b/Examples/test-suite/python/li_std_set_runme.py index 34a1eb19c..7618f7dc8 100644 --- a/Examples/test-suite/python/li_std_set_runme.py +++ b/Examples/test-suite/python/li_std_set_runme.py @@ -92,3 +92,13 @@ for i in s: if (len(sum) != 3 or (not 1 in sum) or (not "hello" in sum) or (not (1, 2) in sum)): raise RuntimeError + +# Create from Python set +s = set_string({"x", "y", "z"}) +sum = "" +for i in s: + sum = sum + i + +if sum != "xyz": + raise RuntimeError + |