X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F005_string.t;h=e2966534bd1ccb88d3ce3b1cccba2811a94dc2dd;hb=e1e26b55f53e781d6096f6ae520363d38344d88b;hp=ef18efb64b2efee157435bae5fd80aaa277f3729;hpb=3f4dd8b74b711eefe941a391a327389fb05abf7f;p=gitmo%2FMoose-Autobox.git diff --git a/t/005_string.t b/t/005_string.t index ef18efb..e296653 100644 --- a/t/005_string.t +++ b/t/005_string.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 20; +use Test::More tests => 23; use Test::Exception; BEGIN { @@ -47,6 +47,10 @@ 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'); +is_deeply('/foo/bar/baz'->split('/'), ['', 'foo', 'bar', 'baz'], '... got the correct fragments'); +is_deeply('Hello World'->words, ['Hello', 'World'], '... got the correct words'); +is_deeply("Hello\nWor\n\nld\n"->lines, ['Hello', 'Wor', '', 'ld'], '... got the correct lines'); + eval 'Hello World, Hello'->dump; is($VAR1, 'Hello World, Hello' , '... eval of &dump works');