[2.x] test: Delete sbt-test/project/continuations (#8948)

This commit is contained in:
kenji yoshida 2026-03-21 12:04:53 +09:00 committed by GitHub
parent 535891f9f7
commit cf80230738
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 0 additions and 39 deletions

View File

@ -1,14 +0,0 @@
scalaVersion := "2.8.1"
autoCompilerPlugins := true
addCompilerPlugin("org.scala-lang.plugins" % "continuations" % "2.8.1")
scalacOptions += "-P:continuations:enable"
libraryDependencies ++= Seq(
"junit" % "junit" % "4.13.1" % "test",
"com.novocode" % "junit-interface" % "0.5" % "test"
)
initialCommands := """assert(Example.x == 20)"""

View File

@ -1,3 +0,0 @@
> compile
> console
> test-only ContinuationsTest

View File

@ -1,11 +0,0 @@
import scala.util.continuations._
object Example {
val x =
reset {
shift { k: (Int => Int) =>
k(k(k(7)))
} + 1
} * 2
}

View File

@ -1,11 +0,0 @@
import org.junit._
import Assert._
class ContinuationsTest
{
@Test
def basic
{
assertTrue(Example.x == 20)
}
}