Skip to content

Commit 8cdc7cd

Browse files
committed
Use playground.scala
1 parent 0fce7a8 commit 8cdc7cd

File tree

2 files changed

+16
-50
lines changed

2 files changed

+16
-50
lines changed

compiler/test/dotty/tools/dotc/NamedPatternMatching.scala

Lines changed: 0 additions & 48 deletions
This file was deleted.

compiler/test/dotty/tools/dotc/Playground.scala

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,24 @@ import dotty.tools.vulpix._
44
import org.junit.Test
55
import org.junit.Ignore
66

7-
@Ignore class Playground:
7+
class Playground:
88
import TestConfiguration._
99
import CompilationTests._
1010

11+
implicit val testGroup: TestGroup = TestGroup("playground")
12+
1113
@Test def example: Unit =
12-
implicit val testGroup: TestGroup = TestGroup("playground")
1314
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()

0 commit comments

Comments
 (0)