Add while test cases
This commit is contained in:
parent
4051a2af3a
commit
c16b1dfe4b
41
corpus/while.txt
Normal file
41
corpus/while.txt
Normal 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))
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in a new issue