]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/case.tests
Imported from ../bash-4.0-rc1.tar.gz.
[thirdparty/bash.git] / tests / case.tests
diff --git a/tests/case.tests b/tests/case.tests
new file mode 100644 (file)
index 0000000..d85dc3e
--- /dev/null
@@ -0,0 +1,14 @@
+case foo in
+bar)   echo skip ;;
+foo)   echo fallthrough ;&
+bax)   echo to here ;&
+qux)   echo and here;;
+fop)   echo but not here;;
+esac
+
+case foobar in
+bar)   echo skip ;;
+foo*)  echo retest ;;&
+*bar)  echo and match ;;&
+qux)   echo but not this ;;
+esac