File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -212,3 +212,12 @@ Invalid count error is catchable
212
212
213
213
Invalid type error is catchable
214
214
Check Test Case ${TESTNAME }
215
+
216
+ Invalid assign
217
+ Check Test Case ${TESTNAME }
218
+
219
+ Invalid assign with assign mark
220
+ Check Test Case ${TESTNAME }
221
+
222
+ Too many assign marks
223
+ Check Test Case ${TESTNAME }
Original file line number Diff line number Diff line change @@ -334,6 +334,18 @@ Invalid type error is catchable
334
334
... Assign dict variable not dict AND
335
335
... Fail Also this is executed!
336
336
337
+ Invalid assign
338
+ [Documentation] FAIL No keyword with name '\${oops' found.
339
+ ${oops Set Variable whatever
340
+
341
+ Invalid assign with assign mark
342
+ [Documentation] FAIL No keyword with name '\${oops=' found.
343
+ ${oops= Set Variable whatever
344
+
345
+ Too many assign marks
346
+ [Documentation] FAIL No keyword with name '\${oops}==' found.
347
+ ${oops }== Set Variable whatever
348
+
337
349
*** Keywords ***
338
350
Assign multiple variables
339
351
[Arguments] @{args }
Original file line number Diff line number Diff line change @@ -124,7 +124,8 @@ def is_dict_variable(self):
124
124
125
125
def is_assign (self , allow_assign_mark = False ):
126
126
if allow_assign_mark and self .string .endswith ('=' ):
127
- return search_variable (rstrip (self .string [:- 1 ]), ignore_errors = True ).is_assign ()
127
+ match = search_variable (rstrip (self .string [:- 1 ]), ignore_errors = True )
128
+ return match .is_assign ()
128
129
return (self .is_variable ()
129
130
and self .identifier in '$@&'
130
131
and not self .items
You can’t perform that action at this time.
0 commit comments