summaryrefslogtreecommitdiff
path: root/test/files/run/bug978.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-01-02 17:40:25 +0000
committerPaul Phillips <paulp@improving.org>2011-01-02 17:40:25 +0000
commit635bc9c17b0d35e9cf8029cf24aee8d3594a143f (patch)
tree7b7ca9282bd2c009f9c0e1c4c00ffb7eedf94802 /test/files/run/bug978.scala
parent533ffe9482c530489ad4f6670831b8d87f78193a (diff)
downloadscala-635bc9c17b0d35e9cf8029cf24aee8d3594a143f.tar.gz
scala-635bc9c17b0d35e9cf8029cf24aee8d3594a143f.tar.bz2
scala-635bc9c17b0d35e9cf8029cf24aee8d3594a143f.zip
Misc uninteresting tidbits to take some weight ...
Misc uninteresting tidbits to take some weight off overly large patches in progress. No review.
Diffstat (limited to 'test/files/run/bug978.scala')
-rw-r--r--test/files/run/bug978.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/bug978.scala b/test/files/run/bug978.scala
index 72dfdbae0a..a2df87b0ed 100644
--- a/test/files/run/bug978.scala
+++ b/test/files/run/bug978.scala
@@ -13,14 +13,14 @@ object Test extends Application {
// val set = new collection.jcl.HashSet[Foo]
val max = 200
- for (val x <- 1 to max)
+ for (x <- 1 to max)
set += new Foo(x)
testRemove(2)
testExists(2)
def testRemove(m: Int) {
- for (val x <- 1 to max; x % m == 0) {
+ for (x <- 1 to max; if x % m == 0) {
val f = new Foo(x)
set -= f
assert(!(set contains f))
@@ -29,7 +29,7 @@ object Test extends Application {
}
def testExists(m: Int) {
- for (val x <- 1 to max; x % m == 1) {
+ for (x <- 1 to max; if x % m == 1) {
val f = new Foo(x)
assert(set contains f, "For element: " + f + " set: " + set)
}