Revision: 2842
Author: KariHusa
Date: Tue Apr  6 22:25:51 2010
Log: Initial tests for kwarg support in user keywords, issue 215
http://code.google.com/p/robotframework/source/detail?r=2842

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

=======================================
--- /trunk/atest/testdata/core/keywords/kwargs.txt      Tue Apr  6 03:35:22 2010
+++ /trunk/atest/testdata/core/keywords/kwargs.txt      Tue Apr  6 22:25:51 2010
@@ -28,12 +28,21 @@
     ${ret}=  one kw arg  foo\\=bar
     should be equal  ${ret}  foo=foo=bar

-Kwargs in User Keyword
-    ${ret}=  Uk With Kwargs  ukfoo=foo  ukbar=Bar
-    Should Be Equal  ${ret}  ukfoo=foo, ukbar=Bar
-
+Uk Simple Kwarg
+    Uk Two KwArgs  ukfoo=arg
+    ${ret}=  Uk One Kwarg  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 ***
-Uk With Kwargs
+Uk One Kwarg
+    [arguments]  ${ukfoo}=
+    [return]  ukfoo=${ukfoo}
+
+Uk Two Kwargs
     [arguments]  ${ukfoo}=  ${ukbar}=
     [return]  ukfoo=${ukfoo}, ukbar=${ukbar}



--
To unsubscribe, reply using "remove me" as the subject.

Reply via email to