Skip to content

Commit 11a7ab3

Browse files
committed
Reproduce issue sbt#5504 in scripted test
1 parent 68e2ec8 commit 11a7ab3

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object MathFunction {
2+
def times2(i: Int): Int = 2 * 2
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object MathFunction {
2+
def times2(i: Int): Int = i * 2
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import org.scalatest.FlatSpec
2+
3+
class MathFunctionTest extends FlatSpec {
4+
"times2" should "double the input" in {
5+
assert(MathFunction.times2(4) == 8)
6+
}
7+
}

sbt-app/src/sbt-test/tests/test-quick/test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ $ sleep 2000
3232
-> testQuick Create
3333
> testQuick Delete
3434
> testQuick Create
35+
36+
# https://github.com/sbt/sbt/issues/5504
37+
$ copy-file changed/MathFunction.scala src/test/scala/MathFunction.scala
38+
> compile
39+
$ sleep 2000
40+
-> testQuick MathFunctionTest

0 commit comments

Comments
 (0)