Skip to content

Commit

Permalink
Disable some SessionTests in Scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Feb 3, 2021
1 parent 9294f0b commit fa18ef7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion shell/src/test/scala/ammonite/shell/SessionTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ object SessionTests extends TestSuite{
""")
}

test("cdIntoDirSymlink"){
def cdIntoDirSymlinkTest() = {
check.session(
s"""
@ import ammonite.ops._
Expand Down Expand Up @@ -85,6 +85,19 @@ object SessionTests extends TestSuite{
@ rm! tmpdir
""")
}
test("cdIntoDirSymlink"){
// Getting weird errors in Scala 3:
// java.lang.AssertionError: assertion failed: os.BasePathImpl & os.FilePath /
// TypeRef(ThisType(TypeRef(NoPrefix,module class os)),trait BasePathImpl) &
// HKTypeLambda(List(CC), List(TypeBounds(TypeRef(ThisType(TypeRef(NoPrefix,module class
// scala)),class Nothing),HKTypeLambda(List(_), List(TypeBounds(TypeRef(ThisType(TypeRef(
// NoPrefix,module class scala)),class Nothing),TypeRef(ThisType(TypeRef(NoPrefix,module
// class scala)),class Any))), TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class
// Any), List()))), AppliedType(TypeRef(ThisType(TypeRef(NoPrefix,module class os)),trait
// FilePath),List(TypeParamRef(CC))))
if (scala2) cdIntoDirSymlinkTest()
else "Disabled in Scala 3"
}

test("nestedSymlinks"){
check.session(
Expand Down

0 comments on commit fa18ef7

Please sign in to comment.