diff options
author | michelou <michelou@epfl.ch> | 2007-04-19 17:59:46 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-04-19 17:59:46 +0000 |
commit | 5cc62b4e5cfe4f37b7b30ae9d2cadcdbb406987e (patch) | |
tree | 6e6b95195d1582f69d4e56a85f90d3d5530608fe /test | |
parent | ed8f3f0b9b31e75b14933e889d6aa105d2c0f0b7 (diff) | |
download | scala-5cc62b4e5cfe4f37b7b30ae9d2cadcdbb406987e.tar.gz scala-5cc62b4e5cfe4f37b7b30ae9d2cadcdbb406987e.tar.bz2 scala-5cc62b4e5cfe4f37b7b30ae9d2cadcdbb406987e.zip |
updated tests for productElement/-Arity
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/caseclasses.scala | 4 | ||||
-rw-r--r-- | test/files/run/misc.scala | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/files/run/caseclasses.scala b/test/files/run/caseclasses.scala index e064ba859f..72a7232d8a 100644 --- a/test/files/run/caseclasses.scala +++ b/test/files/run/caseclasses.scala @@ -12,14 +12,14 @@ object Test extends Application { } try { - Bar() element 3 + Bar() productElement 3 throw new NullPointerException("duh") } catch { case x:IndexOutOfBoundsException => } try { - f(2) element 3 + f(2) productElement 3 throw new NullPointerException("duh") } catch { case x:IndexOutOfBoundsException => diff --git a/test/files/run/misc.scala b/test/files/run/misc.scala index 4ae0f37007..6229cd4510 100644 --- a/test/files/run/misc.scala +++ b/test/files/run/misc.scala @@ -222,12 +222,12 @@ Console.println; Console.println( true // Foo(3,'a',Bar()).caseElement( -1 ) == null // throws Exception now - && Foo(3,'a',Bar()).element( 0 ) == 3 - && Foo(3,'a',Bar()).element( 1 ) == 'a' - && Foo(3,'a',Bar()).element( 2 ) == Bar() + && Foo(3,'a',Bar()).productElement( 0 ) == 3 + && Foo(3,'a',Bar()).productElement( 1 ) == 'a' + && Foo(3,'a',Bar()).productElement( 2 ) == Bar() && true // Foo(3,'a',Bar()).caseElement( 3 ) == null // throws Exception now - && Bar().arity == 0 - && Foo(3,'a',Bar()).arity == 3); + && Bar().productArity == 0 + && Foo(3,'a',Bar()).productArity == 3); //############################################################################ |