[Python-checkins] CVS: /python/nondist/src/Compiler/tests test_func.py,1.7,1.8
Jeremy Hylton
jhylton@cnri.reston.va.us
Thu, 17 Feb 2000 17:11:42 -0500
Update of /projects/cvsroot//python/nondist/src/Compiler/tests
In directory goon.cnri.reston.va.us:/home/jhylton/python/nondist/src/Compiler/tests
Modified Files:
test_func.py
Log Message:
test some more variants of func defs
Index: test_func.py
===================================================================
RCS file: /projects/cvsroot//python/nondist/src/Compiler/tests/test_func.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** test_func.py 2000/02/16 00:52:04 1.7
--- test_func.py 2000/02/17 22:11:39 1.8
***************
*** 10,21 ****
return zfill(a, 10)
! def test4(((a, b), c), x, (d, (e, f))):
return a + b * c - d / e + f
def test():
print test1(2)
print test2('a', b='c', c='d', abc='42')
print test3(None, Ellipsis, "365")
! print test4(((10, 6), 2), 0, (6, (3, 22)))
test()
--- 10,27 ----
return zfill(a, 10)
! def test4(((a, b), c), x, (d, (e, f)), y, z):
return a + b * c - d / e + f
+ def test5(a=1, *rest):
+ print rest
+ return map(lambda x, a=a: x + a, rest)
+
def test():
print test1(2)
print test2('a', b='c', c='d', abc='42')
print test3(None, Ellipsis, "365")
! print test4(((10, 6), 2), 0, (6, (3, 22)), 0, 0)
! print test5()
! print test5(2, 0, 1, 2)
test()