PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/perl5/char_strings_runme.pl

#
Perl | 15 lines | 11 code | 3 blank | 1 comment | 0 complexity | 412a10772835c33455cdbe82d4fadd4c MD5 | raw file
 1use strict;
 2use warnings;
 3use Test::More tests => 5;
 4BEGIN { use_ok('char_strings') }
 5require_ok('char_strings');
 6
 7my $val1 = "100";
 8is(char_strings::CharPingPong($val1), "100", 'cstr1');
 9
10my $val2 = "greetings";
11is(char_strings::CharPingPong($val2), "greetings", 'cstr2');
12
13# SF#2564192
14"this is a test" =~ /(\w+)$/;
15is(char_strings::CharPingPong($1), "test", "handles Magical");