[Python-checkins] CVS: python/dist/src/Lib/test/output test_parser,1.1,1.2

Fred L. Drake python-dev@python.org
Fri, 25 Aug 2000 15:42:43 -0700


Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory slayer.i.sourceforge.net:/tmp/cvs-serv25671/Lib/test/output

Modified Files:
	test_parser 
Log Message:

Update the parser module to support augmented assignment.

Add some test cases.


Index: test_parser
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_parser,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_parser	2000/08/21 22:30:53	1.1
--- test_parser	2000/08/25 22:42:40	1.2
***************
*** 1,27 ****
  test_parser
  Expressions:
! foo(1)
! [1, 2, 3]
! [x**3 for x in range(20)]
! [x**3 for x in range(20) if x % 3]
! foo(*args)
! foo(*args, **kw)
! foo(**kw)
! foo(key=value)
! foo(key=value, *args)
! foo(key=value, *args, **kw)
! foo(key=value, **kw)
! foo(a, b, c, *args)
! foo(a, b, c, *args, **kw)
! foo(a, b, c, **kw)
! foo + bar
  
  Statements:
! print
! print 1
! print 1,
! print >>fp
! print >>fp, 1
! print >>fp, 1,
  
  Invalid parse trees:
--- 1,41 ----
  test_parser
  Expressions:
! expr: foo(1)
! expr: [1, 2, 3]
! expr: [x**3 for x in range(20)]
! expr: [x**3 for x in range(20) if x % 3]
! expr: foo(*args)
! expr: foo(*args, **kw)
! expr: foo(**kw)
! expr: foo(key=value)
! expr: foo(key=value, *args)
! expr: foo(key=value, *args, **kw)
! expr: foo(key=value, **kw)
! expr: foo(a, b, c, *args)
! expr: foo(a, b, c, *args, **kw)
! expr: foo(a, b, c, **kw)
! expr: foo + bar
  
  Statements:
! suite: print
! suite: print 1
! suite: print 1,
! suite: print >>fp
! suite: print >>fp, 1
! suite: print >>fp, 1,
! suite: a
! suite: a = b
! suite: a = b = c = d = e
! suite: a += b
! suite: a -= b
! suite: a *= b
! suite: a /= b
! suite: a %= b
! suite: a &= b
! suite: a |= b
! suite: a ^= b
! suite: a <<= b
! suite: a >>= b
! suite: a **= b
  
  Invalid parse trees:
***************
*** 34,36 ****
--- 48,53 ----
  
  a,,c
+ caught expected exception for invalid tree
+ 
+ a $= b
  caught expected exception for invalid tree