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

& split the result in two strings #17

Closed
ghost opened this issue Oct 14, 2015 · 6 comments
Closed

& split the result in two strings #17

ghost opened this issue Oct 14, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Oct 14, 2015

I face a problem with escaped " or & As an example I change the test input data and this is the results I get:

  1) test xpath with sweet_xpath as only argment (SweetXmlTest)
     test/sweet_xml_test.exs:37
     Assertion with == failed
     code: result == ['O&ne', 'Two', 'Three', 'Four', 'Five']
     lhs:  ['O', '&ne', 'Two', 'Three', 'Four', 'Five']
     rhs:  ['O&ne', 'Two', 'Three', 'Four', 'Five']
     stacktrace:
       test/sweet_xml_test.exs:48
@ghost ghost closed this as completed Oct 14, 2015
@ghost
Copy link
Author

ghost commented Oct 14, 2015

Can fix it using list and joining list after

@viniciussbs
Copy link
Contributor

Hi, @steffenix. If you use 's' modifier to return strings instead of char lists, does the same error occur?

@RobinClowers
Copy link

It's great there is a workaround, but this does seem like a bug to me, can we please reopen this issue?

@RobinClowers
Copy link

And yes, the same thing happens if you specify 's'.

@ghost
Copy link
Author

ghost commented Oct 30, 2015

It's because of erlang behind

@stocks29
Copy link

+1

This issue was closed.
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