Skip to content

Commit

Permalink
Add minimized test
Browse files Browse the repository at this point in the history
  • Loading branch information
liufengyun committed Jun 4, 2022
1 parent e7e1811 commit c91a352
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/init/pos/scalatest.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class TestSuite:
protected val it = new ItWord

protected final class ItWord:
def should(string: String) = new ItVerbString("should", string)

private def registerTestToRun(fun: => Any): Unit = ()

protected final class ItVerbString(verb: String, name: String):
inline def in(testFun: => Any): Unit = registerTestToRun(testFun)

class MyTest extends TestSuite:
it should "not cause outer select errors" in {
assert(1 + 1 == 2)
}

val n = 10

0 comments on commit c91a352

Please sign in to comment.