mirror of https://github.com/sbt/sbt.git
drop test-compat tests
This commit is contained in:
parent
966926a624
commit
1fddcd5bb2
|
|
@ -1,2 +0,0 @@
|
|||
project.name=ScalaTest Compatibility Test
|
||||
project.version=1.0
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import sbt._
|
||||
|
||||
class CompatScalaTest(info: ProjectInfo) extends DefaultProject(info)
|
||||
{
|
||||
val specs = "org.scala-tools.testing" % "scalacheck" % "1.6" % "test"
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
import org.scalacheck._
|
||||
|
||||
object Failure extends Properties("String") {
|
||||
property("startsWith") = Prop.forAll((a: String, b: String) => (a+b).startsWith(a))
|
||||
|
||||
property("endsWith") = Prop.forAll((a: String, b: String) => (a+b).endsWith(b))
|
||||
|
||||
// Is this really always true?
|
||||
property("concat") = Prop.forAll((a: String, b: String) =>
|
||||
(a+b).length > a.length && (a+b).length > b.length
|
||||
)
|
||||
|
||||
property("substring") = Prop.forAll((a: String, b: String) =>
|
||||
(a+b).substring(a.length) == b
|
||||
)
|
||||
|
||||
property("substring") = Prop.forAll((a: String, b: String, c: String) =>
|
||||
(a+b+c).substring(a.length, a.length+b.length) == b
|
||||
)
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
import org.scalacheck._
|
||||
|
||||
object Success extends Properties("String") {
|
||||
property("startsWith") = Prop.forAll((a: String, b: String) => (a+b).startsWith(a))
|
||||
|
||||
property("endsWith") = Prop.forAll((a: String, b: String) => (a+b).endsWith(b))
|
||||
|
||||
property("substring") = Prop.forAll((a: String, b: String) =>
|
||||
(a+b).substring(a.length) == b
|
||||
)
|
||||
|
||||
property("substring") = Prop.forAll((a: String, b: String, c: String) =>
|
||||
(a+b+c).substring(a.length, a.length+b.length) == b
|
||||
)
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
> ++ 2.7.4
|
||||
> update
|
||||
> test-only Success
|
||||
-> test-only Failure
|
||||
|
||||
> ++ 2.7.7
|
||||
> update
|
||||
> test-only Success
|
||||
-> test-only Failure
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
project.name=ScalaTest Compatibility Test
|
||||
project.version=1.0
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import sbt._
|
||||
|
||||
class CompatScalaTest(info: ProjectInfo) extends DefaultProject(info)
|
||||
{
|
||||
val specs = "org.scalatest" % "scalatest" % "1.0" % "test"
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
/** The ScalaTest example on the home page, but failing.. */
|
||||
|
||||
import org.scalatest.FlatSpec
|
||||
import org.scalatest.matchers.ShouldMatchers
|
||||
import scala.collection.mutable.Stack
|
||||
|
||||
class Failure extends FlatSpec with ShouldMatchers {
|
||||
|
||||
"A Stack" should "pop values in last-in-first-out order" in {
|
||||
val stack = new Stack[Int]
|
||||
stack.push(1)
|
||||
stack.push(2)
|
||||
stack.pop() should equal (2)
|
||||
stack.pop() should equal (19) // should fail
|
||||
}
|
||||
|
||||
it should "throw NoSuchElementException if an empty stack is popped" in {
|
||||
val emptyStack = new Stack[String]
|
||||
evaluating { emptyStack.pop() } should produce [NoSuchElementException]
|
||||
}
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
/** The ScalaTest example on the home page. */
|
||||
|
||||
import org.scalatest.FlatSpec
|
||||
import org.scalatest.matchers.ShouldMatchers
|
||||
import scala.collection.mutable.Stack
|
||||
|
||||
class StackSpecSuccess extends FlatSpec with ShouldMatchers {
|
||||
|
||||
"A Stack" should "pop values in last-in-first-out order" in {
|
||||
val stack = new Stack[Int]
|
||||
stack.push(1)
|
||||
stack.push(2)
|
||||
stack.pop() should equal (2)
|
||||
stack.pop() should equal (1)
|
||||
}
|
||||
|
||||
it should "throw NoSuchElementException if an empty stack is popped" in {
|
||||
val emptyStack = new Stack[String]
|
||||
evaluating { emptyStack.pop() } should produce [NoSuchElementException]
|
||||
}
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
> ++ 2.7.5
|
||||
> update
|
||||
> test-only StackSpecSuccess
|
||||
-> test-only Failure
|
||||
|
||||
> ++ 2.7.7
|
||||
> update
|
||||
> test-only StackSpecSuccess
|
||||
-> test-only Failure
|
||||
|
|
@ -1 +0,0 @@
|
|||
libraryDependencies += "org.scala-tools.testing" %% "specs" % "1.6.1" intransitive()
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import org.specs._
|
||||
|
||||
object Failure extends Specification {
|
||||
"'hello world' has 11 characters" in {
|
||||
"hello world".size must be equalTo(12)
|
||||
}
|
||||
"'hello world' matches 'h.* w.*'" in {
|
||||
"hello world" must be matching("h.* w.*")
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import org.specs._
|
||||
|
||||
object Success extends Specification {
|
||||
"'hello world' has 11 characters" in {
|
||||
"hello world".size must be equalTo(11)
|
||||
}
|
||||
"'hello world' matches 'h.* w.*'" in {
|
||||
"hello world" must be matching("h.* w.*")
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
> ++ 2.7.5
|
||||
> test-only Success
|
||||
-> test-only Failure
|
||||
|
||||
> ++ 2.7.7
|
||||
> test-only Success
|
||||
-> test-only Failure
|
||||
Loading…
Reference in New Issue