From 5cc62b4e5cfe4f37b7b30ae9d2cadcdbb406987e Mon Sep 17 00:00:00 2001 From: michelou Date: Thu, 19 Apr 2007 17:59:46 +0000 Subject: updated tests for productElement/-Arity --- test/files/run/caseclasses.scala | 4 ++-- test/files/run/misc.scala | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test') 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); //############################################################################ -- cgit v1.2.3