added Dean's test for Vector bug (blowing up after 32 items)
This commit is contained in:
parent
ca88bf237e
commit
ca83d0af64
1 changed files with 17 additions and 0 deletions
17
akka-core/src/test/scala/VectorBugTestSuite.scala
Normal file
17
akka-core/src/test/scala/VectorBugTestSuite.scala
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue