X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F005_string.t;h=bdba48f17da4d64db884b3c0ffacd6cf3653beab;hb=8528b416f602104b72959949592ed8894edb7f1d;hp=086ef266cc140530cc465f5f2042c831a648d43a;hpb=7dad276528d940b1475e55f8acfdc9414ba1f6bc;p=gitmo%2FMoose-Autobox.git diff --git a/t/005_string.t b/t/005_string.t index 086ef26..bdba48f 100644 --- a/t/005_string.t +++ b/t/005_string.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 16; +use Test::More tests => 18; use Test::Exception; BEGIN { @@ -41,5 +41,7 @@ is('Hello World, Hello'->index('Hello'), 0, '... got the correct index'); is('Hello World, Hello'->index('Hello', 6), 13, '... got the correct index'); -#is('Hello World, Hello'->rindex('World'), 13, '... got the correct right index'); -#diag CORE::rindex('Hello World, Hello', 'Hello'); +is('Hello World, Hello'->rindex('Hello'), 13, '... got the correct right index'); + +is('Hello World, Hello'->rindex('Hello', 6), 0, '... got the correct right index'); +