From 9e8e5af06407378048630d4932b67a9a64b9ab2d Mon Sep 17 00:00:00 2001 From: Sanne Wouda Date: Thu, 12 Mar 2015 11:54:47 +0100 Subject: [PATCH] Add test cases for parsing 'begin' without ';' --- fish_tests.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fish_tests.cpp b/fish_tests.cpp index c51ea8abc..3e4b8dcb3 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++)