-
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 AlignVariablesSection using fixed separator
- Loading branch information
Showing
7 changed files
with
73 additions
and
10 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,5 @@ | ||
AlignVariablesSection not using configured spacecount (#605) | ||
------------------------------------------------------------ | ||
|
||
``AlignVariablesSection`` transformed should now use configured ``--spacecount`` instead of fixed value of ``4`` | ||
spaces. |
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
9 changes: 9 additions & 0 deletions
9
tests/atest/transformers/AlignVariablesSection/expected/single_var_2spaces.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,9 @@ | ||
*** Settings *** | ||
Documentation Test | ||
*** Variables *** | ||
${VAR_NAME_25_CHARACTERS} Test | ||
|
||
*** Test Cases *** | ||
Test1 | ||
${test_col_21_chars}= Set Variable Test |
9 changes: 9 additions & 0 deletions
9
tests/atest/transformers/AlignVariablesSection/expected/single_var_4spaces.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,9 @@ | ||
*** Settings *** | ||
Documentation Test | ||
*** Variables *** | ||
${VAR_NAME_25_CHARACTERS} Test | ||
|
||
*** Test Cases *** | ||
Test1 | ||
${test_col_21_chars}= Set Variable Test |
16 changes: 16 additions & 0 deletions
16
tests/atest/transformers/AlignVariablesSection/expected/tests_2space_sep.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,16 @@ | ||
*** Variables *** | ||
# some comment | ||
|
||
${VARIABLE 1} 10 # comment | ||
@{LIST} a b c d | ||
${LONGER_NAME_THAT_GOES_AND_GOES} longer value that goes and goes | ||
|
||
&{MULTILINE} a=b | ||
... b=c | ||
... d=1 | ||
${invalid} | ||
${invalid_more} | ||
|
||
# should be left aligned | ||
# should be left aligned | ||
${variable} 1 |
9 changes: 9 additions & 0 deletions
9
tests/atest/transformers/AlignVariablesSection/source/single_var.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,9 @@ | ||
*** Settings *** | ||
Documentation Test | ||
*** Variables *** | ||
${VAR_NAME_25_CHARACTERS} Test | ||
|
||
*** Test Cases *** | ||
Test1 | ||
${test_col_21_chars}= Set Variable Test |
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