From 6ea184f8c055ede060cf3ba97b21c7e304887705 Mon Sep 17 00:00:00 2001 From: Uy Ha Date: Fri, 2 Jul 2021 09:26:41 +0200 Subject: [PATCH] Add test case for if condition having parentheses --- corpus/condition.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/corpus/condition.txt b/corpus/condition.txt index e555b2e..62b6ee5 100644 --- a/corpus/condition.txt +++ b/corpus/condition.txt @@ -86,3 +86,23 @@ endif() (endif_command (endif)) ) ) + +====================================== +Condition with parentheses [condition] +====================================== +if((A AND B) OR C) +endif() +--- +(source_file + (if_condition + (if_command + (if) + (argument (unquoted_argument)) + (argument (unquoted_argument)) + (argument (unquoted_argument)) + (argument (unquoted_argument)) + (argument (unquoted_argument)) + ) + (endif_command (endif)) + ) +)