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

Add more XML attribute unit tests for SI-9047 #78

Merged
merged 2 commits into from
Aug 22, 2015

Conversation

ashawley
Copy link
Member

@ashawley ashawley commented Aug 4, 2015

Some tests to document what the current behavior is for the sake of discussion in issue #43.

val xml = <foo bar="apple" />
assertEquals(Group(Text("apple")), xml \ "@bar")
// assertEquals(NodeSeq.fromSeq(Seq(Text("apple"))), xml \ "@bar")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we get rid of this comment ? Advance sorries if it feels very nit picky.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Looks like I put that there on purpose. It is what the test would be if we used the proposed change in issue 43. Granted, I didn't leave these comments consistently.

@biswanaths
Copy link
Contributor

Ok this seems fine to me, whatever be the stand on the parent issue. I will merge these unit tests.

biswanaths added a commit that referenced this pull request Aug 22, 2015
Add more XML attribute unit tests for SI-9047
@biswanaths biswanaths merged commit 6126554 into scala:master Aug 22, 2015
@ashawley ashawley deleted the issue-78-attribute-tests branch September 28, 2015 21:21
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

Successfully merging this pull request may close these issues.

2 participants