-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Robot: capture a keyword started from variable referencing
Input: *** Keywords *** ${embedded arg} Starting Single No Operation Oputput: ${embedded arg} Starting Single input.robot /^${embedded arg} Starting Single$/;" k Close #1570. Signed-off-by: Masatake YAMATO <[email protected]>
- Loading branch information
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--sort=no |
17 changes: 17 additions & 0 deletions
17
Units/parser-robot.r/keyword-started-from-varref.d/expected.tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
myvar input.robot /^${myvar} variable_value$/;" v | ||
My Regular Keyword input.robot /^My Regular Keyword$/;" k | ||
My_Regular_Keyword input.robot /^My Regular Keyword$/;" k | ||
${embedded arg} Starting Single input.robot /^${embedded arg} Starting Single$/;" k | ||
${embedded_arg}_Starting_Single input.robot /^${embedded arg} Starting Single$/;" k | ||
${embedded arg1} Starting ${embedded arg2} Multiple input.robot /^${embedded arg1} Starting ${embedded arg2} Multiple$/;" k | ||
${embedded_arg1}_Starting_${embedded_arg2}_Multiple input.robot /^${embedded arg1} Starting ${embedded arg2} Multiple$/;" k | ||
${embedded arg1} Starting And ${embedded arg2} Ending ${embedded arg3} input.robot /^${embedded arg1} Starting And ${embedded arg2} Ending ${embedded arg3}$/;" k | ||
${embedded_arg1}_Starting_And_${embedded_arg2}_Ending_${embedded_arg3} input.robot /^${embedded arg1} Starting And ${embedded arg2} Ending ${embedded arg3}$/;" k | ||
Middle ${embedded arg} Single Arguments input.robot /^Middle ${embedded arg} Single Arguments$/;" k | ||
Middle_${embedded_arg}_Single_Arguments input.robot /^Middle ${embedded arg} Single Arguments$/;" k | ||
Middle ${embedded arg1} Multiple ${embedded arg2} Arguments input.robot /^Middle ${embedded arg1} Multiple ${embedded arg2} Arguments$/;" k | ||
Middle_${embedded_arg1}_Multiple_${embedded_arg2}_Arguments input.robot /^Middle ${embedded arg1} Multiple ${embedded arg2} Arguments$/;" k | ||
Ending Single ${embedded arg} input.robot /^Ending Single ${embedded arg}$/;" k | ||
Ending_Single_${embedded_arg} input.robot /^Ending Single ${embedded arg}$/;" k | ||
Ending Multiple ${embedded arg1} And ${embedded arg2} input.robot /^Ending Multiple ${embedded arg1} And ${embedded arg2}$/;" k | ||
Ending_Multiple_${embedded_arg1}_And_${embedded_arg2} input.robot /^Ending Multiple ${embedded arg1} And ${embedded arg2}$/;" k |
31 changes: 31 additions & 0 deletions
31
Units/parser-robot.r/keyword-started-from-varref.d/input.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# This test input is taken from #1570 opened by @mMontu. | ||
# | ||
*** Variables *** | ||
${myvar} variable_value | ||
|
||
*** Keywords *** | ||
|
||
My Regular Keyword | ||
Sleep 5s | ||
|
||
${embedded arg} Starting Single | ||
No Operation | ||
|
||
${embedded arg1} Starting ${embedded arg2} Multiple | ||
No Operation | ||
|
||
${embedded arg1} Starting And ${embedded arg2} Ending ${embedded arg3} | ||
No Operation | ||
|
||
Middle ${embedded arg} Single Arguments | ||
No Operation | ||
|
||
Middle ${embedded arg1} Multiple ${embedded arg2} Arguments | ||
No Operation | ||
|
||
Ending Single ${embedded arg} | ||
No Operation | ||
|
||
Ending Multiple ${embedded arg1} And ${embedded arg2} | ||
No Operation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters