Revision: 3496
Author: pekka.klarck
Date: Tue May 25 06:44:13 2010
Log: 1) check using (and not using) = when setting vars, 2) added NO RIDE
so that different cases are preserved
http://code.google.com/p/robotframework/source/detail?r=3496
Modified:
/trunk/atest/robot/keywords/return_values.txt
/trunk/atest/testdata/keywords/return_values.txt
=======================================
--- /trunk/atest/robot/keywords/return_values.txt Mon May 24 08:27:30 2010
+++ /trunk/atest/robot/keywords/return_values.txt Tue May 25 06:44:13 2010
@@ -24,7 +24,10 @@
Check Log Message ${test.kws[0].msgs[0]} \${var1} = one
Check Log Message ${test.kws[0].msgs[1]} \${var2} = two
-Optional = Mark
+= Mark Without Space
+ Check Test Case ${TEST NAME}
+
+No = Mark
Check Test Case ${TEST NAME}
Optional = Mark With Multiple Variables
=======================================
--- /trunk/atest/testdata/keywords/return_values.txt Mon May 24 08:27:30
2010
+++ /trunk/atest/testdata/keywords/return_values.txt Tue May 25 06:44:13
2010
@@ -1,4 +1,5 @@
*** Settings ***
+Documentation NO RIDE because it would sanitize formatting too much.
Library ExampleLibrary
*** Test Cases ***
@@ -21,15 +22,24 @@
Should Be Equal ${var1} one
Should Be Equal ${var2} two
-Optional = Mark
- ${var} = Set Variable hello
+= Mark Without Space
+ ${var}= Set Variable hello
Should Be Equal ${var} hello
- ${v1} ${v2} = Set Variable hi you
+ ${v1} ${v2}= Set Variable hi you
Should Be Equal ${v1} hi
Should Be Equal ${v2} you
@{list}= Set Variable a b c
Should Be Equal @{list}[0] @{list}[1] @{list}[2] a b c
+No = Mark
+ ${var} Set Variable hello
+ Should Be Equal ${var} hello
+ ${v1} ${v2} Set Variable hi you
+ Should Be Equal ${v1} hi
+ Should Be Equal ${v2} you
+ @{list} Set Variable a b c
+ Should Be Equal @{list}[0] @{list}[1] @{list}[2] a b c
+
Optional = Mark With Multiple Variables
${v1}= ${v2}= @{list}= Set Variable a b c
Should Be Equal ${v1} a
@@ -75,8 +85,7 @@
Scalar Variables With More Values Than Variables
[Documentation] Extra string variables are added to last scalar
variable as list
- ${a} ${b} ${c} = List a b c d
- ... e f
+ ${a} ${b} ${c} = List a b c d e f
Should Be Equal ${a} a
Should Be True '${b}' == 'b'
Should Be True ${c} == ['c', 'd', 'e', 'f']
@@ -94,8 +103,7 @@
@{list} = Set Variable ${42}
List To Scalar And List Varibles
- ${a} ${b} @{c} = Create List 1 2 c d
- ... e f
+ ${a} ${b} @{c} = Create List 1 2 c d e f
Should Be True ${a} + ${b} == 3
Should Be True @{c} == ['c', 'd', 'e', 'f']
Should Be Equal @{c}...@{c}[2]@{c}[3] @{c}[3]oo(@{c}[0]): print
@{c}[0] def foo(c): print c