# HG changeset patch # User Paul Boddie # Date 1480119926 -3600 # Node ID 78c5ac97463db6bc529d0a7076fa5fc54444ac99 # Parent 399732ba1e063b1f2c5da7c60125f3581c74c122 Added expected results. diff -r 399732ba1e06 -r 78c5ac97463d tests/assign_sequence.py --- a/tests/assign_sequence.py Sat Nov 26 00:56:00 2016 +0100 +++ b/tests/assign_sequence.py Sat Nov 26 01:25:26 2016 +0100 @@ -3,9 +3,9 @@ x = l a, b, c = l d, e, f = [1, 2, 3] - print a, b, c - print d, e, f - print x + print a, b, c # 1, 2, 3 + print d, e, f # 1, 2, 3 + print x # [1, 2, 3] def g(x): l = [1, 2, 3] @@ -17,19 +17,19 @@ print n f() -g(0) -g(1) +g(0) # [4, [1, 2, 3], 6] +g(1) # [1, 2, 3] l = [1, 2, 3] x = l a, b, c = l d, e, f = [1, 2, 3] -print a, b, c -print d, e, f -print x +print a, b, c # 1, 2, 3 +print d, e, f # 1, 2, 3 +print x # [1, 2, 3] m = [4, l, 6] if x: n = l else: n = m -print n +print n # [1, 2, 3]