Debian Codegraph @

t/scalar.t

raw symbols SCIP
1 #!perl
2
3 use Test::More 'no_plan';
4 use autobox::Core;
5
6 is( "this is a test"->title_case, 'This Is A Test');
7 is( "this is a test"->lc->title_case, 'This Is A Test');
8
9 is( "thIS is a teST"->title_case, 'ThIS Is A TeST');
10 is( "thIS is a teST"->lc->title_case, 'This Is A Test');
11
12 is( ' testme'->ltrim, 'testme' );
13 is( ' testme'->rtrim, ' testme' );
14 is( ' testme'->trim, 'testme' );
15
16 is( 'testme '->ltrim, 'testme ' );
17 is( 'testme '->rtrim, 'testme' );
18 is( 'testme '->trim, 'testme' );
19
20 is( ' testme '->ltrim, 'testme ' );
21 is( ' testme '->rtrim, ' testme' );
22 is( ' testme '->trim, 'testme' );
23
24 is( '--> testme <--'->ltrim("-><"), ' testme <--' );
25 is( '--> testme <--'->rtrim("-><"), '--> testme ' );
26 is( '--> testme <--'->trim("-><"), ' testme ' );
27
28 is( ' --> testme <--'->trim("-><"), ' --> testme ' );