X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fc1490e86f04bef1712a767ff53b4293abdb5aaf..bc3a01aef9a58d5e22137dbcc38fec7abebfdb22:/t/helper/camelify.t diff --git a/t/helper/camelify.t b/t/helper/camelify.t new file mode 100644 index 000000000..0b5f8e3c6 --- /dev/null +++ b/t/helper/camelify.t @@ -0,0 +1,16 @@ +use Test::More tests => 8; + +use strict; + +use lib 't'; + +use SL::Util qw(camelify); + +is(camelify('hello'), 'Hello', 'hello'); +is(camelify('hello_world'), 'HelloWorld', 'hello_world'); +is(camelify('hello_world_'), 'HelloWorld_', 'hello_world_'); +is(camelify('charlie_the_unicorn'), 'CharlieTheUnicorn', 'charlie_the_unicorn'); +is(camelify('_charlie_the_unicorn'), 'CharlieTheUnicorn', '_charlie_the_unicorn'); +is(camelify('hello__world'), 'HelloWorld', 'hello__world'); +is(camelify('hELLO'), 'HELLO', 'hELLO'); +is(camelify('hellO_worlD'), 'HellOWorlD', 'hellO_worlD');