mirror of https://github.com/sbt/sbt.git
Reproduce issue #5504 in scripted test
This commit is contained in:
parent
68e2ec872d
commit
11a7ab3ef7
|
|
@ -0,0 +1,3 @@
|
||||||
|
object MathFunction {
|
||||||
|
def times2(i: Int): Int = 2 * 2
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
object MathFunction {
|
||||||
|
def times2(i: Int): Int = i * 2
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
import org.scalatest.FlatSpec
|
||||||
|
|
||||||
|
class MathFunctionTest extends FlatSpec {
|
||||||
|
"times2" should "double the input" in {
|
||||||
|
assert(MathFunction.times2(4) == 8)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -32,3 +32,9 @@ $ sleep 2000
|
||||||
-> testQuick Create
|
-> testQuick Create
|
||||||
> testQuick Delete
|
> testQuick Delete
|
||||||
> testQuick Create
|
> testQuick Create
|
||||||
|
|
||||||
|
# https://github.com/sbt/sbt/issues/5504
|
||||||
|
$ copy-file changed/MathFunction.scala src/test/scala/MathFunction.scala
|
||||||
|
> compile
|
||||||
|
$ sleep 2000
|
||||||
|
-> testQuick MathFunctionTest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue