File: 01-abbreviations.t

package info (click to toggle)
libtext-names-perl 0.46-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 924 kB
  • sloc: perl: 7,687; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 284 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
use Text::Names qw/abbreviationOf/;
use Test::More;

ok(abbreviationOf('Dave','David'),'Dave -> David');
ok(abbreviationOf('Mike','Michael'),'Mike -> Michael');
ok(abbreviationOf('Bella','Belinda'),'Bella -> Belinda');
ok(!abbreviationOf('John','Bob'),'John !> Bob');


done_testing;