summaryrefslogtreecommitdiff
path: root/t/chainlint/case-comment.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/case-comment.test')
-rw-r--r--t/chainlint/case-comment.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/chainlint/case-comment.test b/t/chainlint/case-comment.test
new file mode 100644
index 0000000000..3f31ae9010
--- /dev/null
+++ b/t/chainlint/case-comment.test
@@ -0,0 +1,13 @@
+test_expect_success 'case-comment' '
+(
+ case "$x" in
+ # found foo
+ x) foo ;;
+ # found other
+ *)
+ # treat it as bar
+ bar
+ ;;
+ esac
+)
+'