Skip to content

Commit

Permalink
Rename old inspect method to debug after new clash
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jul 1, 2024
1 parent 5eeb6fb commit fb739cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/macros.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/probably.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit fb739cf

Please sign in to comment.