-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Robotidy not recognizing variables using extended variables syntax
- Loading branch information
Showing
5 changed files
with
50 additions
and
5 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
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
12 changes: 12 additions & 0 deletions
12
tests/atest/transformers/RenameVariables/expected/math_operations.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,12 @@ | ||
*** Test Cases *** | ||
Simple math operations | ||
${i} Set Variable ${0} | ||
Log ${i+1} | ||
|
||
Global Value | ||
Log ${I-1} | ||
|
||
Invalid syntax | ||
${i} Set Variable ${0} | ||
${y} Set Variable ${1} | ||
Log ${i+y+1} |
12 changes: 12 additions & 0 deletions
12
tests/atest/transformers/RenameVariables/source/math_operations.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,12 @@ | ||
*** Test Cases *** | ||
Simple math operations | ||
${i} Set Variable ${0} | ||
Log ${i+1} | ||
|
||
Global Value | ||
Log ${i-1} | ||
|
||
Invalid syntax | ||
${i} Set Variable ${0} | ||
${y} Set Variable ${1} | ||
Log ${i+y+1} |
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