From: Richard Soderberg Date: Mon, 28 May 2001 12:31:23 +0000 (-0700) Subject: RE: [20000223.001] no test cases for splice(@array) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f507e1268524c10f439b01a55ae26d7c9c765ecf;p=p5sagit%2Fp5-mst-13.2.git RE: [20000223.001] no test cases for splice(@array) Message-ID: p4raw-id: //depot/perl@10265 --- diff --git a/t/op/splice.t b/t/op/splice.t index 06e3509..3b4229a 100755 --- a/t/op/splice.t +++ b/t/op/splice.t @@ -1,6 +1,6 @@ #!./perl -print "1..9\n"; +print "1..10\n"; @a = (1..10); @@ -32,3 +32,9 @@ print "ok 8\n"; print "not " unless j(splice(@a,-3,-2,2)) eq j(7) && j(@a) eq j(1,2,7,3); print "ok 9\n"; + +# Bug 20000223.001 - no test for splice(@array). Destructive test! +print "not " unless j(splice(@a)) eq j(1,2,7,3) && j(@a) eq ''; +print "ok 10\n"; + +