aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--fish_tests.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index c51ea8ab..3e4b8dcb 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -3209,7 +3209,11 @@ static void test_new_parser_correctness(void)
{L"if end", false},
{L"end", false},
{L"for i i", false},
- {L"for i in a b c ; end", true}
+ {L"for i in a b c ; end", true},
+ {L"begin end", true},
+ {L"begin; end", true},
+ {L"begin if true; end; end;", true},
+ {L"begin if true ; echo hi ; end; end", true},
};
for (size_t i=0; i < sizeof parser_tests / sizeof *parser_tests; i++)