mirror of https://github.com/sbt/sbt.git
[2.x] test: Delete sbt-test/project/continuations (#8948)
This commit is contained in:
parent
535891f9f7
commit
cf80230738
|
|
@ -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)"""
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
> compile
|
||||
> console
|
||||
> test-only ContinuationsTest
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
import scala.util.continuations._
|
||||
|
||||
object Example {
|
||||
|
||||
val x =
|
||||
reset {
|
||||
shift { k: (Int => Int) =>
|
||||
k(k(k(7)))
|
||||
} + 1
|
||||
} * 2
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
import org.junit._
|
||||
import Assert._
|
||||
|
||||
class ContinuationsTest
|
||||
{
|
||||
@Test
|
||||
def basic
|
||||
{
|
||||
assertTrue(Example.x == 20)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue