From c1f41e5efb3146dc324ef97d0281a3d18db1a049 Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Fri, 5 Jan 2024 09:05:42 +0100 Subject: [PATCH] Accommodate change in order of `Contrast` resolution --- src/core/macros.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/macros.scala b/src/core/macros.scala index 4cf8612..8bffd0f 100644 --- a/src/core/macros.scala +++ b/src/core/macros.scala @@ -51,7 +51,7 @@ object Probably: val debug: Expr[Debug[t | TestType]] = Expr.summon[Debug[t | TestType]].getOrElse('{ TextConversion.any }) - val contrast = Expr.summon[Contrast[t | TestType]].get + val contrast = Expr.summon[Contrast[t | TestType]].getOrElse('{Contrast.general[t | TestType]}) '{ assertion[t | TestType, TestType, ReportType, ResultType]($runner, $test, $predicate, $action, $contrast, Some($expr), $inc, $inc2, $debug) }