From 0d22935756f0fe14e63ae9d1d1273d086abe86ef Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 17 Jun 2000 17:13:59 +0000 Subject: Add a test for cascaded case statement. --- Test/01grammar.ztst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Test/01grammar.ztst') diff --git a/Test/01grammar.ztst b/Test/01grammar.ztst index 0ef1a1756..b8a8cd268 100644 --- a/Test/01grammar.ztst +++ b/Test/01grammar.ztst @@ -184,6 +184,22 @@ 0:`case' loop, new syntax >2 + word=Hilary + case $word in + (Michaelmas) print 0 + ;; + (Hilary) print 1 + ;& + (Trinity) print 2 + ;& + (*) print 3 + ;; + esac +0:`case' loop, new syntax, cascaded +>1 +>2 +>3 + ## This doesn't work, because zsh tries to read from the terminal ## even in a non-interactive shell. The manual implies it always reads ## from stdin, even in an interactive shell. -- cgit 1.4.1