Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1727 by [email protected]: variable value ends with '\ ' (a backslash character for escape and space character), then the space is ignored
http://code.google.com/p/robotframework/issues/detail?id=1727

if a variable value ends with '\ ' (a backslash character for escape and space character), then the space is ignored.

PS: if you open it in RIDE, RIDE automatically truncated the last space after backslash. is this a separate issue or is it related to issue above?

*** Variables ***
${two space var}        a\ \

*** Test Cases ***
one
    ${two space}=    set variable    a\ \
    Length Should Be    ${two space}    3
two
    Length Should Be    ${two space var}    3


C:\Users\id912109\Desktop\Scripts\prototypeX\one>pybot stringtest.txt
==============================================================================
Stringtest
==============================================================================
one | FAIL |
Length of 'a ' should be 3 but is 2
------------------------------------------------------------------------------
two | FAIL |
Length of 'a ' should be 3 but is 2
------------------------------------------------------------------------------
Stringtest | FAIL |
2 critical tests, 0 passed, 2 failed
2 tests total, 0 passed, 2 failed
==============================================================================
Output:  C:\Users\id912109\Desktop\Scripts\prototypeX\one\output.xml
Log:     C:\Users\id912109\Desktop\Scripts\prototypeX\one\log.html
Report:  C:\Users\id912109\Desktop\Scripts\prototypeX\one\report.html

C:\Users\id912109\Desktop\Scripts\prototypeX\one>pybot --version stringtest.txt
Robot Framework 2.8.4 (Python 2.7.2 on win32)


Attachments:
        stringtest.txt  209 bytes

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to