summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-05-12 18:33:22 +0000
committerMartin Odersky <odersky@gmail.com>2009-05-12 18:33:22 +0000
commit39fdbddb881220f7e64e5cb9016458edc9e314e5 (patch)
treea6ada1c0b7640865ea625edd068b5037f1978bfb /test
parent7cfc53fb4b77f70af5de28a057b1d333bee415d8 (diff)
downloadscala-39fdbddb881220f7e64e5cb9016458edc9e314e5.tar.gz
scala-39fdbddb881220f7e64e5cb9016458edc9e314e5.tar.bz2
scala-39fdbddb881220f7e64e5cb9016458edc9e314e5.zip
changes to maps and sets
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t1505.scala14
1 files changed, 4 insertions, 10 deletions
diff --git a/test/files/run/t1505.scala b/test/files/run/t1505.scala
index caadee8a0f..fdcd4f3fb3 100644
--- a/test/files/run/t1505.scala
+++ b/test/files/run/t1505.scala
@@ -11,15 +11,9 @@ object R extends Enumeration {
}
object Test extends Application {
- assert(Some(P(0)) == P.withName("A"))
- assert(Some(P.C) == P.withName("C"))
- assert(None == P.withName("Q"))
+ assert(P(0) == P.withName("A"))
+ assert(P.C == P.withName("C"))
- assert(Some(Q(0)) == Q.withName("A"))
- assert(Some(Q.C) == Q.withName("C"))
- assert(None == Q.withName("Q"))
-
- assert(None == R.withName("A"))
- assert(None == R.withName("C"))
- assert(None == R.withName("Q"))
+ assert(Q(0) == Q.withName("A"))
+ assert(Q.C == Q.withName("C"))
}