Skip to content

Commit 28c6b5a

Browse files
committed
Merge pull request #993 from dotty-staging/tasty-typer-test
Add tests for dotc.typer pickling/unpickling
2 parents be3ab3f + 61dd887 commit 28c6b5a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/dotc/tests.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class tests extends CompilerTest {
5151
val toolsDir = dottyDir + "tools/"
5252
val dotcDir = toolsDir + "dotc/"
5353
val coreDir = dotcDir + "core/"
54+
val typerDir = dotcDir + "typer/"
5455

5556
@Test def pickle_pickleOK = compileDir(testsDir, "pickling", testPickling)
5657
// This directory doesn't exist anymore
@@ -244,6 +245,12 @@ class tests extends CompilerTest {
244245
"TypeApplications.scala", "TypeComparer.scala", "TypeErasure.scala", "TypeOps.scala",
245246
"TyperState.scala", "Uniques.scala"
246247
) map (coreDir + _), testPickling)
248+
@Test def tasty_typer = compileList("tasty_typer", List(
249+
"Applications.scala", "Checking.scala", "ConstFold.scala", "ErrorReporting.scala",
250+
"EtaExpansion.scala", "FrontEnd.scala", "Implicits.scala", "ImportInfo.scala",
251+
"Inferencing.scala", "Mode.scala", "ProtoTypes.scala", "ReTyper.scala", "RefChecks.scala",
252+
"TypeAssigner.scala", "Typer.scala", "VarianceChecker.scala", "Variances.scala"
253+
) map (typerDir + _), testPickling)
247254
@Test def tasty_tasty = compileDir(coreDir, "tasty", testPickling)
248255
@Test def tasty_classfile = compileDir(coreDir, "classfile", testPickling)
249256
@Test def tasty_unpickleScala2 = compileDir(coreDir, "unpickleScala2", testPickling)

0 commit comments

Comments
 (0)