Skip to content

Commit 4cf9607

Browse files
committed
Clean up unused import
1 parent f3cba55 commit 4cf9607

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/cli/cli.scala

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package probably
1919
import escapade.*
2020
import turbulence.*
2121
import contingency.*
22-
import rudiments.*
2322
import vacuous.*
2423
import anticipation.*
2524
import ambience.*, environments.virtualMachine

src/core/macros.scala

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ object Probably:
5454
// val debug: Expr[Debug[testType]] =
5555
// Expr.summon[Debug[testType]].getOrElse('{ _.toString.tt })
5656

57-
// val contrast: Expr[Contrast[testType]] = '{Contrast.general[testType]}
58-
// //val contrast = Expr.summon[Contrast[testType]].getOrElse('{Contrast.general[testType]})
57+
// val contrast: Expr[testType is Contrastable] = '{Contrastable.general[testType]}
58+
// //val contrast = Expr.summon[testType is Contrastable].getOrElse('{Contrastable.general[testType]})
5959
// '{
6060
// assertion[testType, TestType, ReportType, ResultType]
6161
// ($runner, $test, $predicate, $action, $contrast, Some($expr), $inc, $inc2, $debug)
@@ -64,7 +64,7 @@ object Probably:
6464
case _ =>
6565
'{
6666
assertion[TestType, TestType, ReportType, ResultType]
67-
($runner, $test, $predicate, $action, Contrast.nothing[TestType], None, $inc, $inc2,
67+
($runner, $test, $predicate, $action, Contrastable.nothing[TestType], None, $inc, $inc2,
6868
_.toString.tt)
6969
}
7070

@@ -106,7 +106,7 @@ object Probably:
106106
test: Test[TestType2],
107107
predicate: TestType2 => Boolean,
108108
result: TestRun[TestType2] => ResultType,
109-
contrast: Contrast[TestType],
109+
contrast: TestType is Contrastable,
110110
exp: Option[TestType],
111111
inc: Inclusion[ReportType, Outcome],
112112
inc2: Inclusion[ReportType, DebugInfo],
@@ -127,7 +127,7 @@ object Probably:
127127
inc2.include(runner.report, test.id, DebugInfo.Compare(display.text(exp),
128128
display.text(value), contrast(exp, value)))
129129
case None =>
130-
//inc2.include(runner.report, test.id, DebugInfo.Compare(summon[Contrast[Any]].compare(value, 1)))
130+
//inc2.include(runner.report, test.id, DebugInfo.Compare(summon[Any is Contrastable].compare(value, 1)))
131131

132132
if !map.isEmpty then inc2.include(runner.report, test.id, DebugInfo.Captures(map))
133133

0 commit comments

Comments
 (0)