Skip to content

Commit c91a352

Browse files
committed
Add minimized test
1 parent e7e1811 commit c91a352

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/init/pos/scalatest.scala

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class TestSuite:
2+
protected val it = new ItWord
3+
4+
protected final class ItWord:
5+
def should(string: String) = new ItVerbString("should", string)
6+
7+
private def registerTestToRun(fun: => Any): Unit = ()
8+
9+
protected final class ItVerbString(verb: String, name: String):
10+
inline def in(testFun: => Any): Unit = registerTestToRun(testFun)
11+
12+
class MyTest extends TestSuite:
13+
it should "not cause outer select errors" in {
14+
assert(1 + 1 == 2)
15+
}
16+
17+
val n = 10

0 commit comments

Comments
 (0)