diff options
Diffstat (limited to 'test/files')
-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")) } |