Skip to content

Non exhaustive match warning while testing. #114

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

Closed
biswanaths opened this issue Oct 17, 2016 · 3 comments
Closed

Non exhaustive match warning while testing. #114

biswanaths opened this issue Oct 17, 2016 · 3 comments

Comments

@biswanaths
Copy link
Contributor

biswanaths commented Oct 17, 2016

The following waring is generated while testing.

[warn] /home/b1swanath/code/scala-xml/src/test/scala/scala/xml/ReuseNodesTest.scala:86: match may not be exhaustive.
[warn] It would fail on the following inputs: (List(_), Nil), (Nil, List(_))
[warn]     (original.toList,transformed.toList) match {
[warn]     ^
[warn] one warning found

How to reproduce,

do "sbt clean" followed by "sbt test".

@biswanaths biswanaths changed the title Non exhaustive match waring while testing. Non exhaustive match warning while testing. Oct 17, 2016
@ashawley
Copy link
Member

I think I ran across this as well. It might be #83, but it's been a while for me to remember if that's the same warning or not.

@biswanaths
Copy link
Contributor Author

@ashawley : You are right. Your PR #83 is taking care of this.

@biswanaths
Copy link
Contributor Author

#83 Will take care of this. Thanks agian @ashawley .

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

2 participants