You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/shared/src/test/scala/org/specs2/matcher/TryMatchersSpec.scala
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,14 @@ class TryMatchersSpec extends Spec with TryMatchers with ResultMatchers {
18
18
${(Succeeded(1) must beASuccessfulTry.which(_ >0))}
19
19
${(Succeeded(1) must beASuccessfulTry
20
20
.which(_ <0)) returns "Success(1) is a Success but the function returns 'false' on '1'"}
21
-
${(Failed[I](e) must beASuccessfulTry.which(_ >0)) returns "Failure(boom) is not a Success"}
21
+
${(Failed[I](e) must beASuccessfulTry.which(_ >0)) returns "Failure(boom) is not a Success\n\nFailed with boom:\n\n"}
22
22
23
23
${Succeeded(1) must beASuccessfulTry[Int].like { case a if a >0=> ok }}
24
24
${(Succeeded(1) must not(beASuccessfulTry[Int].like { case a => a must be_>=(0) })) returns "Expectation failed: 'Success(1) is a Success but 1 is strictly less than 0'"}
25
25
${Succeeded(1) must not(beASuccessfulTry.withValue(2))}
26
26
${Failed[I](e) must not(beASuccessfulTry)}
27
27
${Failed[I](e) must not(beASuccessfulTry.withValue(2))}
28
-
${(Failed[I](e) must beSuccessfulTry) returns "Failure(boom) is not a Success"}
28
+
${(Failed[I](e) must beSuccessfulTry) returns "Failure(boom) is not a Success\n\nFailed with boom:\n\n"}
29
29
${(Succeeded(1) must beSuccessfulTry.withValue(2)) returns "Success(1) is a Success but 1 != 2"}
0 commit comments