From 91b701a3a747c2d8e9c7013bf999eaadf7aea369 Mon Sep 17 00:00:00 2001 From: pmichaud Date: Sat, 7 Jun 2008 07:10:17 +0000 Subject: [PATCH] S29-array/shift.t, S29-array/pop.t: * Remove some more #?rakudo skip lines * Remove some trailing spaces git-svn-id: http://svn.pugscode.org/pugs@20695 c213334d-75ef-0310-aa23-eaa082d1ae64 --- S29-array/pop.t | 14 ++++++-------- S29-array/shift.t | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/S29-array/pop.t b/S29-array/pop.t index 7e45cadddd..a708c448ed 100644 --- a/S29-array/pop.t +++ b/S29-array/pop.t @@ -3,11 +3,11 @@ use Test; # L -=begin description +=begin description Pop tests -=end description +=end description plan 27; @@ -41,9 +41,7 @@ plan 27; is(pop(@pop), 4, 'inline pop(@pop) works'); is(+@pop, 3, 'we have 3 elements in the array'); -#?rakudo skip 'arity trouble' is(pop @pop, 3, 'inline pop @pop works'); -#?rakudo emit pop @pop; is(+@pop, 2, 'we have 2 elements in the array'); is(@pop.pop(), 2, 'inline @pop.pop() works'); @@ -58,7 +56,7 @@ plan 27; # invocant syntax with inline arrays { is([1, 2, 3].pop, 3, 'this will return 3'); - ok(!defined([].pop), 'this will return undef'); + ok(!defined([].pop), 'this will return undef'); } # some edge cases @@ -71,9 +69,9 @@ plan 27; # testing some error cases { my @pop = 1 .. 5; - dies_ok({ pop() }, 'pop() requires arguments'); - dies_ok({ pop(@pop, 10) }, 'pop() should not allow extra arguments'); - dies_ok({ @pop.pop(10) }, 'pop() should not allow extra arguments'); + dies_ok({ pop() }, 'pop() requires arguments'); + dies_ok({ pop(@pop, 10) }, 'pop() should not allow extra arguments'); + dies_ok({ @pop.pop(10) }, 'pop() should not allow extra arguments'); dies_ok({ 42.pop }, '.pop should not work on scalars'); } diff --git a/S29-array/shift.t b/S29-array/shift.t index 938239f3b9..db60292e69 100644 --- a/S29-array/shift.t +++ b/S29-array/shift.t @@ -43,9 +43,7 @@ plan 27; is(shift(@shift), 1, 'inline shift(@shift) works'); is(+@shift, 3, 'we have 3 elements in our array'); -#?rakudo skip 'arity trouble' is(shift @shift, 2, 'inline shift @shift works'); -#?rakudo emit shift @shift; is(+@shift, 2, 'we have 2 elements in our array'); is(@shift.shift(), 3, 'inline @shift.shift() works');