diff options
author | Sanne Wouda <sanne.wouda@gmail.com> | 2015-03-12 11:54:47 +0100 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-04-13 13:23:59 +0800 |
commit | 9e8e5af06407378048630d4932b67a9a64b9ab2d (patch) | |
tree | ccd8cad9f5b121f4e956e3871ccc6292d8e4c47a /fish_tests.cpp | |
parent | fd731fb74f7e0af3151f5afd8bc8b789e0e47dd4 (diff) |
Add test cases for parsing 'begin' without ';'
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r-- | fish_tests.cpp | 6 |
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++) |