1 use Test::More tests => 7;
7 use SL::Util qw(snakify);
9 is(snakify('Hello'), 'hello', 'Hello');
10 is(snakify('HelloWorld'), 'hello_world', 'helloWorld');
11 is(snakify('HelloWorld_'), 'hello_world_', 'helloWorld_');
12 is(snakify('charlieTheUnicorn'), 'charlie_the_unicorn', 'charlieTheUnicorn');
13 is(snakify('_CharlieTheUnicorn'), '_charlie_the_unicorn', '_CharlieTheUnicorn');
14 is(snakify('HEllo'), 'h_ello', 'HEllo');
15 is(snakify('HELlo'), 'h_e_llo', 'HELlo');