Add while test cases

This commit is contained in:
Uy Ha 2021-06-17 22:45:35 +02:00
parent 4051a2af3a
commit c16b1dfe4b

41
corpus/while.txt Normal file
View file

@ -0,0 +1,41 @@
===================
Empty while [while]
===================
while(cond)
endwhile()
---
(source_file
(while_loop
(while_command
(while)
(argument (unquoted_argument))
)
(endwhile_command (endwhile))
)
)
============================================
Empty while with argument in endwhile[while]
============================================
while(cond)
endwhile(cond)
---
(source_file
(while_loop
(while_command
(while)
(argument (unquoted_argument))
)
(endwhile_command
(endwhile)
(argument (unquoted_argument))
)
)
)