From ea81ab3314359c98986e6fac74c807fa1accdfb6 Mon Sep 17 00:00:00 2001 From: Heather Miller Date: Tue, 7 Aug 2012 18:36:36 +0200 Subject: Added tests, removal of unnecessary methods, fixes prepare --- test/files/jvm/future-spec/TryTests.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/files/jvm/future-spec/TryTests.scala') 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 { -- cgit v1.2.3