From 540706a95d15b43dd94b5258477d36468e76474b Mon Sep 17 00:00:00 2001 From: Heather Miller Date: Wed, 8 Aug 2012 08:03:17 +0200 Subject: Doc fix on exec ctx prepare method, fix to tests --- test/files/jvm/future-spec/TryTests.scala | 1 - test/files/jvm/try-type-tests.scala | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/files/jvm/future-spec/TryTests.scala b/test/files/jvm/future-spec/TryTests.scala index db0be0dfff..82ca12276f 100644 --- a/test/files/jvm/future-spec/TryTests.scala +++ b/test/files/jvm/future-spec/TryTests.scala @@ -1,4 +1,3 @@ -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 diff --git a/test/files/jvm/try-type-tests.scala b/test/files/jvm/try-type-tests.scala index 351f02b183..17811f64c5 100644 --- a/test/files/jvm/try-type-tests.scala +++ b/test/files/jvm/try-type-tests.scala @@ -107,7 +107,7 @@ trait TryStandard { val s = Success(1) val succ = (x: Int) => Success(x * 10) val fail = (x: Throwable) => Success(0) - assert(s.transform(succ, fail).get == s.get) + assert(s.transform(succ, fail).get == 10) } def testFailureTransform(): Unit = { @@ -133,6 +133,8 @@ trait TryStandard { testFlattenSuccess() testFailedSuccess() testFailedFailure() + testSuccessTransform() + testFailureTransform() } object Test -- cgit v1.2.3