1 use Test::More tests => 8;
7 use SL::Util qw(camelify);
9 is(camelify('hello'), 'Hello', 'hello');
10 is(camelify('hello_world'), 'HelloWorld', 'hello_world');
11 is(camelify('hello_world_'), 'HelloWorld_', 'hello_world_');
12 is(camelify('charlie_the_unicorn'), 'CharlieTheUnicorn', 'charlie_the_unicorn');
13 is(camelify('_charlie_the_unicorn'), 'CharlieTheUnicorn', '_charlie_the_unicorn');
14 is(camelify('hello__world'), 'HelloWorld', 'hello__world');
15 is(camelify('hELLO'), 'HELLO', 'hELLO');
16 is(camelify('hellO_worlD'), 'HellOWorlD', 'hellO_worlD');