File tree Expand file tree Collapse file tree 2 files changed +16
-50
lines changed
compiler/test/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +16
-50
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,10 +4,24 @@ import dotty.tools.vulpix._
4
4
import org .junit .Test
5
5
import org .junit .Ignore
6
6
7
- @ Ignore class Playground :
7
+ class Playground :
8
8
import TestConfiguration ._
9
9
import CompilationTests ._
10
10
11
+ implicit val testGroup : TestGroup = TestGroup (" playground" )
12
+
11
13
@ Test def example : Unit =
12
- implicit val testGroup : TestGroup = TestGroup (" playground" )
13
14
compileFile(" tests/playground/example.scala" , defaultOptions).checkCompile()
15
+
16
+
17
+ @ Test def pos : Unit =
18
+ compileFile(" tests/pos/namedPatternMatching.scala" , defaultOptions).checkCompile()
19
+
20
+ @ Test def negativeTests : Unit =
21
+ compileFile(" tests/neg/negNamedPatternMatching.scala" , defaultOptions).checkExpectedErrors()
22
+ compileFile(" tests/neg/bad-unapplies.scala" , defaultOptions).checkExpectedErrors()
23
+ compileFile(" tests/neg/i10757.scala" , defaultOptions).checkExpectedErrors()
24
+
25
+
26
+ @ Test def executionTest : Unit =
27
+ compileFile(" tests/run/runNamedPatternMatching.scala" , defaultOptions).checkRuns()
You can’t perform that action at this time.
0 commit comments