blob: 7b82a9909b9d77732a6eba72ca63edb0f8387960 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import scala.collection.mutable.HashSet
object Test extends App {
val h = new HashSet[Int]
h += 1
println(s"remove 0 should be false, was ${h remove 0}")
println(s"contains 1 should be true, was ${h contains 1}")
println(s"remove 1 should be true, was ${h remove 1}")
println(s"contains 1 should be false, was ${h contains 1}")
println(s"remove 1 should be false, was ${h remove 1}")
println(s"contains 1 should be false, was ${h contains 1}")
}
|