From fb739cf31d91d3bcb7d6beea2b597f4df92dd509 Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Mon, 1 Jul 2024 21:55:32 +0200 Subject: [PATCH] Rename old `inspect` method to `debug` after new clash --- src/core/macros.scala | 2 +- src/core/probably.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/macros.scala b/src/core/macros.scala index c63a396..536a7b3 100644 --- a/src/core/macros.scala +++ b/src/core/macros.scala @@ -139,7 +139,7 @@ object Probably: inc.include(runner.report, test.id, outcome) result(run) - def inspect[TestType: Type](expr: Expr[TestType], test: Expr[TestContext])(using Quotes): Expr[TestType] = + def debug[TestType: Type](expr: Expr[TestType], test: Expr[TestContext])(using Quotes): Expr[TestType] = import quotes.reflect.* val exprName: Text = expr.asTerm.pos match diff --git a/src/core/probably.scala b/src/core/probably.scala index efbdadf..28c5009 100644 --- a/src/core/probably.scala +++ b/src/core/probably.scala @@ -31,7 +31,7 @@ import scala.collection.mutable as scm given realm: Realm = realm"probably" extension [ValueType](inline value: ValueType)(using inline test: TestContext) - inline def inspect: ValueType = ${Probably.inspect('value, 'test)} + inline def debug: ValueType = ${Probably.debug('value, 'test)} package testContexts: given threadLocal: TestContext = new TestContext():