Front page | perl.cvs.parrot |
Postings from December 2008
[svn:parrot] r33629 - trunk/t/op
From:
coke
Date:
December 7, 2008 11:26
Subject:
[svn:parrot] r33629 - trunk/t/op
Message ID:
20081207192648.13450CB9AF@x12.develooper.com
Author: coke
Date: Sun Dec 7 11:26:47 2008
New Revision: 33629
Modified:
trunk/t/op/calling.t
Log:
Fix test broken by r33559.
When removing a deprecated feature, be sure nothing is testing the deleted feature.
Modified: trunk/t/op/calling.t
==============================================================================
--- trunk/t/op/calling.t (original)
+++ trunk/t/op/calling.t Sun Dec 7 11:26:47 2008
@@ -7,7 +7,7 @@
use lib qw( . lib ../lib ../../lib );
use Test::More;
-use Parrot::Test tests => 98;
+use Parrot::Test tests => 93;
=head1 NAME
@@ -1939,91 +1939,6 @@
ok
OUTPUT
-## Named
-pir_output_is( <<'CODE', <<'OUTPUT', " 'foo' => d syntax for parameters" );
-.sub main :main
- foo ('a'=>20,'b'=>10)
- print "ok\n"
-
- end
-.end
-
-.sub foo
- .param int "b" => d
- .param int "a" => c
-
- print d
- print ' '
- print c
- print "\n"
-
- .return ()
-.end
-CODE
-10 20
-ok
-OUTPUT
-
-## Named
-pir_output_is( <<'CODE', <<'OUTPUT', " 'foo' => d syntax for target list" );
-.sub main :main
- ("b" => $I0 , "a" => $I1) = foo( "b" => 10 , "a" => 20)
- print $I0
- print ' '
- print $I1
- print "\n"
- print "ok\n"
-
- end
-.end
-
-.sub foo
- .param int "a" => c
- .param int "b" => d
-
- print d
- print ' '
- print c
- print "\n"
-
- .return ( 10 :named("a"), 20 :named("b"))
-.end
-CODE
-10 20
-20 10
-ok
-OUTPUT
-
-## Named
-pir_output_is( <<'CODE', <<'OUTPUT', " 'foo' => d syntax for return" );
-.sub main :main
- ("b" => $I0 , "a" => $I1) = foo( "b" => 10 , "a" => 20)
- print $I0
- print ' '
- print $I1
- print "\n"
- print "ok\n"
-
- end
-.end
-
-.sub foo
- .param int "a" => c
- .param int "b" => d
-
- print d
- print ' '
- print c
- print "\n"
-
- .return ( "a" => 10, "b" => 20 )
-.end
-CODE
-10 20
-20 10
-ok
-OUTPUT
-
pir_error_output_like( <<'CODE', <<'OUTPUT', "named => pos passing" );
.sub main :main
foo( "b" => 10 , "a" => 20)
@@ -2058,25 +1973,6 @@
ok
OUTPUT
-pir_output_is( <<'CODE', <<'OUTPUT', "named optional - set" );
-.sub main :main
- foo ('a'=>20,'b'=>10)
- print "ok\n"
-.end
-
-.sub foo
- .param int 'b' => d
- .param int 'a' => c :optional
- print d
- print ' '
- print c
- print "\n"
-.end
-CODE
-10 20
-ok
-OUTPUT
-
pir_output_is( <<'CODE', <<'OUTPUT', "named optional - set, :opt_flag" );
.sub main :main
foo ('a'=>20,'b'=>10)
@@ -2166,21 +2062,6 @@
.end
.sub foo
- .param int "a" => c :named("foo")
- .param int "b" => d
-.end
-CODE
-/Named parameter with more than one name/
-OUTPUT
-
-pir_error_output_like( <<'CODE', <<'OUTPUT', "param .. 'a' => v :named('foo')" );
-.sub main :main
- foo( "b" => 10, "a" => 20)
- print "never\n"
- end
-.end
-
-.sub foo
.param int c :named("foo") :named("bar")
.param int "b" => d
.end
-
[svn:parrot] r33629 - trunk/t/op
by coke