Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v1.24
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (20 sloc) 0.852 kB
#!perl
use Test::More 'no_plan';
use autobox::Core;
is( "this is a test"->title_case, 'This Is A Test');
is( "this is a test"->lc->title_case, 'This Is A Test');
is( "thIS is a teST"->title_case, 'ThIS Is A TeST');
is( "thIS is a teST"->lc->title_case, 'This Is A Test');
is( ' testme'->ltrim, 'testme' );
is( ' testme'->rtrim, ' testme' );
is( ' testme'->trim, 'testme' );
is( 'testme '->ltrim, 'testme ' );
is( 'testme '->rtrim, 'testme' );
is( 'testme '->trim, 'testme' );
is( ' testme '->ltrim, 'testme ' );
is( ' testme '->rtrim, ' testme' );
is( ' testme '->trim, 'testme' );
is( '--> testme <--'->ltrim("-><"), ' testme <--' );
is( '--> testme <--'->rtrim("-><"), '--> testme ' );
is( '--> testme <--'->trim("-><"), ' testme ' );
is( ' --> testme <--'->trim("-><"), ' --> testme ' );
Jump to Line
Something went wrong with that request. Please try again.