Tag test cases

This commit is contained in:
Uy Ha 2021-06-07 23:29:32 +02:00
parent b828373a88
commit a4960577dd
5 changed files with 69 additions and 87 deletions

View file

@ -1,6 +1,6 @@
======================
Empty bracket argument
======================
=========================================
Empty bracket argument [bracket_argument]
=========================================
message([[]])
@ -16,9 +16,9 @@ message([[]])
)
)
==========================
One empty bracket argument
==========================
=======================================
One bracket argument [bracket_argument]
=======================================
message([[An argument]])
@ -34,27 +34,9 @@ message([[An argument]])
)
)
====================
One bracket argument
====================
message([[An argument]])
---
(source_file
(command_invocation
(normal_command
(identifier)
(arguments
(argument (bracket_argument (bracket_content)))
)
)
)
)
=====================
Two bracket arguments
=====================
========================================
Two bracket arguments [bracket_argument]
========================================
message([[First argument]] [[Second argument]])
@ -72,9 +54,9 @@ message([[First argument]] [[Second argument]])
)
)
=====================================
Two bracket with two equals arguments
=====================================
========================================================
Two bracket with two equals arguments [bracket_argument]
========================================================
message(
[====[First argument]====]
@ -97,9 +79,9 @@ message(
)
)
================================
Bracket argument with line break
================================
===================================================
Bracket argument with line break [bracket_argument]
===================================================
message([[An argument
with line break

View file

@ -1,6 +1,6 @@
==========================================
[foreach, lowercase, empty_for, empty_end]
==========================================
============================
Empty foreach loop [foreach]
============================
foreach(var)
endforeach()
@ -21,9 +21,9 @@ endforeach()
)
)
==============================================
[foreach, lowercase, empty_for, non_empty_end]
==============================================
=========================================================
Empty foreach loop with one argument endforeach [foreach]
=========================================================
foreach(var)
endforeach(var)
@ -45,9 +45,9 @@ endforeach(var)
)
)
==========================================
[foreach, uppercase, empty_for, empty_end]
==========================================
===========================
Uppercase foreach [foreach]
===========================
FOREACH(var)
ENDFOREACH()
@ -68,9 +68,9 @@ ENDFOREACH()
)
)
===========================================
[foreach, mixed_case, empty_for, empty_end]
===========================================
============================
Mixed case foreach [foreach]
============================
forEach(var)
endForEach()

View file

@ -1,6 +1,6 @@
===================================
Command invocation without argument
===================================
=================================================
Command invocation without argument [no_argument]
=================================================
message()
@ -14,9 +14,9 @@ message()
)
)
===============================================
Command invocation without argument with spaces
===============================================
=============================================================
Command invocation without argument with spaces [no_argument]
=============================================================
message( )
@ -31,9 +31,9 @@ message( )
)
)
================================================
Command invocation without argument with newline
================================================
==============================================================
Command invocation without argument with newline [no_argument]
==============================================================
message(

View file

@ -1,6 +1,6 @@
=========================
One empty quoted argument
=========================
===========================================
One empty quoted argument [quoted_argument]
===========================================
message("")
@ -16,9 +16,9 @@ message("")
)
)
===================
One quoted argument
===================
=====================================
One quoted argument [quoted_argument]
=====================================
message("An argument")
@ -34,9 +34,9 @@ message("An argument")
)
)
====================
Two quoted arguments
====================
======================================
Two quoted arguments [quoted_argument]
======================================
message("First argument" "Second argument")
@ -54,9 +54,9 @@ message("First argument" "Second argument")
)
)
=================================
A quoted argument with line break
=================================
===================================================
A quoted argument with line break [quoted_argument]
===================================================
message("An argument
with line break")
@ -73,9 +73,9 @@ with line break")
)
)
======================
One variable reference
======================
========================================
One variable reference [quoted_argument]
========================================
message("${var}")
@ -97,9 +97,9 @@ message("${var}")
)
)
=======================
Two Variable references
=======================
=========================================
Two Variable references [quoted_argument]
=========================================
message("${var} ${var}")

View file

@ -1,6 +1,6 @@
====================================
Command invocation with one argument
====================================
========================================================
Command invocation with one argument [unquoted_argument]
========================================================
message(STATUS)
@ -17,9 +17,9 @@ message(STATUS)
)
)
=====================================
Command invocation with two arguments
=====================================
=========================================================
Command invocation with two arguments [unquoted_argument]
=========================================================
message(STATUS Hello)
@ -38,9 +38,9 @@ message(STATUS Hello)
)
)
===========================================
Command invocations with leading seperation
===========================================
===============================================================
Command invocations with leading seperation [unquoted_argument]
===============================================================
message( STATUS)
message(
@ -67,9 +67,9 @@ STATUS)
)
)
)
========================================
Command invocations with escape sequence
========================================
============================================================
Command invocations with escape sequence [unquoted_argument]
============================================================
message( STATUS)
message(
@ -97,9 +97,9 @@ STATUS)
)
)
====================
Variable referencing
====================
========================================
Variable referencing [unquoted_argument]
========================================
message(${var_ref})
---