Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equal matcher should handle \n #23

Closed
bendycode opened this issue Feb 22, 2013 · 1 comment
Closed

equal matcher should handle \n #23

bendycode opened this issue Feb 22, 2013 · 1 comment

Comments

@bendycode
Copy link

This fails:

describe "equal"
  it 'handles \n character'
    string_with_new_line="x\ny"
    output='x
y'
    assert equal "$string_with_new_line" "$output"
end_describe
@rylnd rylnd closed this as completed in 2a4b5ff Feb 22, 2013
@rylnd rylnd mentioned this issue Feb 26, 2013
@rylnd rylnd mentioned this issue Apr 13, 2015
@hlangeveld
Copy link
Collaborator

According to the opengroup (POSIX) definition, the string "x\ny" should be four characters long, and not contain a newline character. This assertion should fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants