File: 01-basic.t

package info (click to toggle)
libstring-camelcase-perl 0.04-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 108 kB
  • sloc: perl: 401; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

use strict;
use warnings;
use Test::More tests => 4;
use String::CamelCase qw(camelize decamelize wordsplit);

# basics.
is(camelize("some_keyword"),  'SomeKeyword');
is(decamelize("SomeKeyword"), 'some_keyword');
is_deeply([wordsplit("some_keyword")], [qw(some keyword)]);
is_deeply([wordsplit("SomeKeyword")],  [qw(Some Keyword)]);

# -----------------------------------------------------------------------------
# End of File.
# -----------------------------------------------------------------------------