Revision: 2848
Author: KariHusa
Date: Wed Apr  7 02:47:18 2010
Log: moar tests
http://code.google.com/p/robotframework/source/detail?r=2848

Modified:
 /trunk/atest/robot/core/keywords/kwargs.txt
 /trunk/atest/testdata/core/keywords/kwargs.txt

=======================================
--- /trunk/atest/robot/core/keywords/kwargs.txt Tue Apr  6 03:35:22 2010
+++ /trunk/atest/robot/core/keywords/kwargs.txt Wed Apr  7 02:47:18 2010
@@ -20,3 +20,24 @@
 Escaping Kwarg
     Check Test Case  ${TESTNAME}

+Uk Simple Kwarg
+    Check Test Case  ${TESTNAME}
+
+Substitution Starts From The End With Uk
+    Check Test Case  ${TESTNAME}
+
+Equals Sign In Kwarg Value With Uk
+    Check Test Case  ${TESTNAME}
+
+Using non-existing kwarg With Uk
+    Check Test Case  ${TESTNAME}
+
+Escaping Kwarg With Uk
+    Check Test Case  ${TESTNAME}
+
+Simple Kwarg With Timeout
+    Check Test Case  ${TESTNAME}
+
+Uk Simple Kwarg with Timeout
+    Check Test Case  ${TESTNAME}
+
=======================================
--- /trunk/atest/testdata/core/keywords/kwargs.txt      Tue Apr  6 22:25:51 2010
+++ /trunk/atest/testdata/core/keywords/kwargs.txt      Wed Apr  7 02:47:18 2010
@@ -3,41 +3,76 @@

 *** Test Cases ***
 Simple Kwarg
-    ${ret}=  one kw arg  foo=bar
-    should be equal  ${ret}  foo=bar
-    ${ret}=  Two Kw Args  fst=bar  snd=quux
-    Should Be Equal  ${ret}  fst=bar, snd=quux
-    ${ret}=  Two Kw Args  snd=quux  fst=bar
-    Should Be Equal  ${ret}  fst=bar, snd=quux
-
+    Test With Kwargs
+
 Substitution Starts From The End
-    ${ret}=  Four Kw Args  a=foo  bar  d=quux
+    ${ret}=  Four Kwargs  a=foo  bar  d=quux
     Should Be Equal  ${ret}  a=a=foo, b=bar, c=None, d=quux

 Equals Sign In Kwarg Value
-    ${ret}=  one kw arg  foo=bar=quux
-    should be equal  ${ret}  foo=bar=quux
+    ${ret}=  One Kwarg  foo=bar=quux
+    Should Be Equal  ${ret}  foo=bar=quux

 Using non-existing kwarg
-    ${ret}=  one kw arg  keijo=not kwarg
-    should be equal  ${ret}  foo=keijo=not kwarg
+    ${ret}=  One Kwarg  keijo=not kwarg
+    Should Be Equal  ${ret}  foo=keijo=not kwarg

 Escaping Kwarg
-    ${ret}=  one kw arg  foo=bar\\=quux
-    should be equal  ${ret}  foo=bar\\=quux
-    ${ret}=  one kw arg  foo\\=bar
-    should be equal  ${ret}  foo=foo=bar
+    ${ret}=  One Kwarg  foo=bar\\=quux
+    Should Be Equal  ${ret}  foo=bar\\=quux
+    ${ret}=  One Kwarg  foo\\=bar
+    Should Be Equal  ${ret}  foo=foo=bar

 Uk Simple Kwarg
-    Uk Two KwArgs  ukfoo=arg
+    Test With UK Kwargs
+
+Substitution Starts From The End With Uk
+    ${ret}=  Uk Four Kwargs  a=foo  bar  d=quux
+    Should Be Equal  ${ret}  a=a=foo, b=bar, c=, d=quux
+
+Equals Sign In Kwarg Value With Uk
+    ${ret}=  Uk one kwarg  ukfoo=bar=quux
+    Should Be Equal  ${ret}  ukfoo=bar=quux
+
+Using non-existing kwarg With Uk
+    ${ret}=  uk one kwarg  keijo=not kwarg
+    Should Be Equal  ${ret}  ukfoo=keijo=not kwarg
+
+Escaping Kwarg With Uk
+    ${ret}=  uk one kwarg  ukfoo=bar\\=quux
+    Should Be Equal  ${ret}  ukfoo=bar\\=quux
+    ${ret}=  uk one kwarg  ukfoo\\=bar
+    Should Be Equal  ${ret}  ukfoo=ukfoo=bar
+
+Simple Kwarg With Timeout
+    [timeout]  10
+    Test With Kwargs
+
+Uk Simple Kwarg with Timeout
+    Test With UK Kwargs Using Timeout
+
+
+*** Keywords ***
+Test With Kwargs
+    ${ret}=  one kw arg  foo=bar
+    Should Be Equal  ${ret}  foo=bar
+    ${ret}=  Two Kw Args  fst=bar  snd=quux
+    Should Be Equal  ${ret}  fst=bar, snd=quux
+    ${ret}=  Two Kw Args  snd=quux  fst=bar
+    Should Be Equal  ${ret}  fst=bar, snd=quux
+
+Test With UK Kwargs
     ${ret}=  Uk One Kwarg  ukfoo=ukbar
-    should be equal  ${ret}  ukfoo=ukbar
+    Should Be Equal  ${ret}  ukfoo=ukbar
     ${ret}=  Uk Two Kwargs  ukfoo=ukbar  ukbar=ukquux
     Should Be Equal  ${ret}  ukfoo=ukbar, ukbar=ukquux
     ${ret}=  Uk Two Kw Args  ukbar=ukquux  ukfoo=ukbar
     Should Be Equal  ${ret}  ukfoo=ukbar, ukbar=ukquux
-
-*** Keywords ***
+
+Test With UK Kwargs Using Timeout
+    [Timeout]  10s
+    Test With UK Kwargs
+
 Uk One Kwarg
     [arguments]  ${ukfoo}=
     [return]  ukfoo=${ukfoo}
@@ -46,3 +81,6 @@
     [arguments]  ${ukfoo}=  ${ukbar}=
     [return]  ukfoo=${ukfoo}, ukbar=${ukbar}

+Uk Four Kw Args
+    [arguments]  ${a}=  ${b}=  ${c}=  ${d}=
+    [return]  a=${a}, b=${b}, c=${c}, d=${d}

Reply via email to