diff options
author | Heather Miller <heather.miller@epfl.ch> | 2012-08-07 18:36:36 +0200 |
---|---|---|
committer | Heather Miller <heather.miller@epfl.ch> | 2012-08-07 18:36:36 +0200 |
commit | ea81ab3314359c98986e6fac74c807fa1accdfb6 (patch) | |
tree | d39d7d549e765af105e1c0808808a8ea5d340037 /test/files/jvm/future-spec | |
parent | 505cc713ec4546c5f9be1065e5fa3f7065451b8f (diff) | |
download | scala-ea81ab3314359c98986e6fac74c807fa1accdfb6.tar.gz scala-ea81ab3314359c98986e6fac74c807fa1accdfb6.tar.bz2 scala-ea81ab3314359c98986e6fac74c807fa1accdfb6.zip |
Added tests, removal of unnecessary methods, fixes prepare
Diffstat (limited to 'test/files/jvm/future-spec')
-rw-r--r-- | test/files/jvm/future-spec/TryTests.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/jvm/future-spec/TryTests.scala b/test/files/jvm/future-spec/TryTests.scala index 47ce9c2e15..db0be0dfff 100644 --- a/test/files/jvm/future-spec/TryTests.scala +++ b/test/files/jvm/future-spec/TryTests.scala @@ -1,4 +1,4 @@ - +x // This is a port of the com.twitter.util Try spec. // -- // It lives in the future-spec directory simply because it requires a specs-like @@ -55,12 +55,12 @@ object TryTests extends MinimalScalaTest { Failure[Int](e) flatMap(x => Success(1 + x)) mustEqual Failure(e) } - // "when there is an exception" in { - // Success(1).flatMap[Int](_ => throw e) mustEqual Failure(e) + "when there is an exception" in { + Success(1).flatMap[Int](_ => throw e) mustEqual Failure(e) - // val e2 = new Exception - // Failure[Int](e).flatMap[Int](_ => throw e2) mustEqual Failure(e) - // } + val e2 = new Exception + Failure[Int](e).flatMap[Int](_ => throw e2) mustEqual Failure(e) + } } "flatten" in { |