diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-03-28 23:51:17 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-03-28 23:51:17 (GMT) |
commit | aed0d8deb0c810db32f5370c0f089266bb349962 (patch) | |
tree | 07b597710b2f24df3ff86c77dcfa100ee4b1872d /Lib/test/output | |
parent | 7690151c7e95f38b91a9c572ce29b4d8a4ca671d (diff) | |
download | cpython-aed0d8deb0c810db32f5370c0f089266bb349962.zip cpython-aed0d8deb0c810db32f5370c0f089266bb349962.tar.gz cpython-aed0d8deb0c810db32f5370c0f089266bb349962.tar.bz2 |
add test cases for Greg Ewing's extended call syntax patch
Diffstat (limited to 'Lib/test/output')
-rw-r--r-- | Lib/test/output/test_extcall | 18 | ||||
-rw-r--r-- | Lib/test/output/test_grammar | 24 |
2 files changed, 42 insertions, 0 deletions
diff --git a/Lib/test/output/test_extcall b/Lib/test/output/test_extcall new file mode 100644 index 0000000..9a5fb37 --- /dev/null +++ b/Lib/test/output/test_extcall @@ -0,0 +1,18 @@ +test_extcall +() {} +(1,) {} +(1, 2) {} +(1, 2, 3) {} +(1, 2, 3, 4, 5) {} +(1, 2, 3) {'b': 5, 'a': 4} +(1, 2, 3, 4, 5) {'b': 7, 'a': 6} +(1, 2, 3, 6, 7) {'y': 5, 'b': 9, 'x': 4, 'a': 8} +TypeError: not enough arguments; expected 1, got 0 +TypeError: not enough arguments; expected 1, got 0 +TypeError: not enough arguments; expected 1, got 0 +1 () {} +1 (2,) {} +1 (2, 3) {} +1 (2, 3, 4, 5) {} +keyword parameter redefined: x +keyword parameter redefined: b diff --git a/Lib/test/output/test_grammar b/Lib/test/output/test_grammar index 4af27f7..ba0143d 100644 --- a/Lib/test/output/test_grammar +++ b/Lib/test/output/test_grammar @@ -42,5 +42,29 @@ additive ops multiplicative ops unary ops selectors +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. + atoms classdef |