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

TrySpec #7

Closed
ghost opened this issue Aug 11, 2011 · 1 comment
Closed

TrySpec #7

ghost opened this issue Aug 11, 2011 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 11, 2011

I guess the spec

...
"Try" should {
"rescue" in {
val myException = new MyException
Return(1) rescue { case _ => Return(2) } mustEqual Return(1)
Throw(e) rescue { case _ => Return(2) } mustEqual Return(2)
Throw(e) rescue { case _ => Throw(e) } mustEqual Throw(e) //THIS PART
}
...

THIS PART should be Throw(myException) rescue ...
Just FYI

@evnm
Copy link
Contributor

evnm commented Feb 19, 2014

Closing this issue, as the test in question has since been ported to ScalaTest.

@evnm evnm closed this as completed Feb 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant