Skip to content

Commit 88e8735

Browse files
committed
Merge branch 'dotty-adjustments-190326' of https://github.com/cheeseng/scalatest into cheeseng-dotty-adjustments-190326
2 parents ffab0c5 + 5c76629 commit 88e8735

File tree

11 files changed

+648
-237
lines changed

11 files changed

+648
-237
lines changed

project/GenScalaTestDotty.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ object GenScalaTestDotty {
178178
def genTest(targetDir: File, version: String, scalaVersion: String): Seq[File] = {
179179
copyFiles("scalatest-test/src/test/scala/org/scalatest", "org/scalatest", targetDir,
180180
List(
181-
"AssertionsSpec.scala"
181+
"AssertionsSpec.scala",
182+
"ShouldCompileSpec.scala",
183+
"ShouldNotCompileSpec.scala"
182184
)
183185
) /*++
184186
copyDir("scalatest-test/src/test/scala/org/scalatest/concurrent", "org/scalatest/concurrent", targetDir,

project/GenScalacticDotty.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,12 @@ object GenScalacticDotty {
149149
def genTest(targetDir: File, version: String, scalaVersion: String): Seq[File] =
150150
copyDir("scalactic-test/src/test/scala/org/scalactic", "org/scalactic", targetDir,
151151
List(
152-
"AccumulationSpec.scala", // ClassFormatError: Illegal field modifiers in class org/scalatest/prop/Tables: 0x9
153152
"CanEqualSpec.scala", // NotImplementedError
154-
"ChainSpec.scala", // Hang the compiler
153+
"ChainSpec.scala", // Compilation error to be investigated further
155154
"DecidersSpec.scala", // Compilation error to be investigated further
156-
"DifferSpec.scala", // macro expansion error: invalid prefix NoType
155+
"DifferSpec.scala", // Test failed when run to be investigate further.
157156
"DirectRequirementsSpec.scala", // macro expansion error: invalid prefix NoType
158-
"EverySpec.scala", // This hangs dotty
157+
"EverySpec.scala", // Compilation error to be investigated further
159158
"FutureSugarSpec.scala", // Implementation missing
160159
"NormalizationSpec.scala", // Compilation error to be investigated further.
161160
"NormMethodsSpec.scala", // Compilation error to be investigated further.

project/scalatest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ object ScalatestBuild {
10361036
projectTitle := "ScalaTest Test",
10371037
organization := "org.scalatest",
10381038
libraryDependencies ++= scalatestLibraryDependencies,
1039-
libraryDependencies ++= scalatestTestLibraryDependencies(scalaVersion.value),
1039+
//libraryDependencies ++= scalatestTestLibraryDependencies(scalaVersion.value),
10401040
testOptions in Test := scalatestTestOptions,
10411041
logBuffered in Test := false,
10421042
//fork in Test := true,

scalactic.dotty/src/main/scala/org/scalactic/source/Position.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ object Position {
7171
import refl._
7272

7373
val file = refl.rootPosition.sourceFile
74-
val fileName: String = file.getFileName.toString
74+
val fileName: String = file.jpath.getFileName.toString
7575
val filePath: String = if (showScalacticFillFilePathnames) file.toString else Resources.pleaseDefineScalacticFillFilePathnameEnvVar()
7676
val lineNo: Int = refl.rootPosition.startLine
7777
'{ Position(${fileName.toExpr}, ${filePath.toExpr}, ${lineNo.toExpr}) }

0 commit comments

Comments
 (0)