We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3d26e7 commit ee75030Copy full SHA for ee75030
core/src/test/scala/ox/UtilTest.scala
@@ -3,6 +3,7 @@ package ox
3
import org.scalatest.flatspec.AnyFlatSpec
4
import org.scalatest.matchers.should.Matchers
5
import ox.util.Trail
6
+import ox.*
7
8
class UtilTest extends AnyFlatSpec with Matchers:
9
"discard" should "do nothing" in {
@@ -60,4 +61,14 @@ class UtilTest extends AnyFlatSpec with Matchers:
60
61
}.tap(v => t.add(s"Got: $v")) shouldBe 3
62
t.get shouldBe Vector("Adding", "Got: 3")
63
}
64
+
65
+ "debug as extension" should "work" in {
66
+ val x = 10
67
+ x.debug("some label") shouldBe 10
68
+ }
69
70
+ "debug as top-level method" should "work" in {
71
72
+ debug(x + 1) shouldBe ()
73
74
end UtilTest
0 commit comments