added Dean's test for Vector bug (blowing up after 32 items)

This commit is contained in:
Peter Vlugter 2010-04-20 11:07:16 +12:00
parent ca88bf237e
commit ca83d0af64

View file

@ -0,0 +1,17 @@
package se.scalablesolutions.akka.stm
import org.scalatest.FunSuite
import Transaction.Global._
class TransactionalVectorBugTestSuite extends FunSuite {
test("adding more than 32 items to a Vector shouldn't blow it up") {
atomic {
var v1 = new Vector[Int]()
for (i <- 0 to 31) {
v1 = v1 + i
}
v1 = v1 + 32
}
}
}