Reproduce issue #5504 in scripted test

This commit is contained in:
gontard 2022-05-24 06:44:26 +02:00
parent 65cdcf434d
commit 903fd6ae7a
4 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,3 @@
object MathFunction {
def times2(i: Int): Int = 2 * 2
}

View File

@ -0,0 +1,3 @@
object MathFunction {
def times2(i: Int): Int = i * 2
}

View File

@ -0,0 +1,7 @@
import org.scalatest.FlatSpec
class MathFunctionTest extends FlatSpec {
"times2" should "double the input" in {
assert(MathFunction.times2(4) == 8)
}
}

View File

@ -32,3 +32,9 @@ $ sleep 2000
-> testQuick Create
> testQuick Delete
> testQuick Create
# https://github.com/sbt/sbt/issues/5504
$ copy-file changed/MathFunction.scala src/test/scala/MathFunction.scala
> compile
$ sleep 2000
-> testQuick MathFunctionTest