File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
scala3doc/test/dotty/dokka
tests/run-custom-args/tasty-inspector Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ abstract class SignatureTest(
2222 filterFunc : (Path ) => Boolean = _ => true
2323) extends ScaladocTest (testName):
2424
25- def runTest = afterRendering {
25+ def runTest = { org.junit. Assume .assumeTrue( " Running on Windows " , java.io. File .separatorChar == '/' ); afterRendering {
2626 val sources = sourceFiles match
2727 case Nil => testName :: Nil
2828 case s => s
@@ -65,7 +65,7 @@ abstract class SignatureTest(
6565 reportError(errorMessage)
6666 end if
6767
68- } :: Nil
68+ } :: Nil }
6969
7070 // e.g. to remove '(0)' from object IAmACaseObject extends CaseImplementThis/*<-*/(0)/*->*/
7171 private val commentRegex = raw " \/\*<-\*\/[^\/]+\/\*->\*\/ " .r
Original file line number Diff line number Diff line change 1- List(tastyPaths/I8163.class)
1+ List(/ tastyPaths/I8163.class)
22`reflect.SourceFile.current` cannot be called within the TASTy ispector
Original file line number Diff line number Diff line change 11import scala .quoted ._
22import scala .tasty .inspector ._
33
4+ import java .io .File .separatorChar
5+
46opaque type PhoneNumber = String
57
68case class I8163 () {
@@ -23,7 +25,7 @@ object Test {
2325class TestInspector () extends Inspector :
2426
2527 def inspect (using Quotes )(tastys : List [Tasty [quotes.type ]]): Unit =
26- println(tastys.map(_.path.split(" / tasty-inspector/ " ).last))
28+ println(tastys.map(_.path.split(" tasty-inspector" ).last.replace(separatorChar, '/' ) ))
2729 try
2830 quotes.reflect.SourceFile .current
2931 assert(false )
You can’t perform that action at this time.
0 commit comments