diff options
author | Martin Odersky <odersky@gmail.com> | 2009-05-12 18:33:22 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-05-12 18:33:22 +0000 |
commit | 39fdbddb881220f7e64e5cb9016458edc9e314e5 (patch) | |
tree | a6ada1c0b7640865ea625edd068b5037f1978bfb /test | |
parent | 7cfc53fb4b77f70af5de28a057b1d333bee415d8 (diff) | |
download | scala-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.scala | 14 |
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")) } |