/trunk/Examples/test-suite/perl5/char_strings_runme.pl
Perl | 15 lines | 11 code | 3 blank | 1 comment | 0 complexity | 412a10772835c33455cdbe82d4fadd4c MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- use strict;
- use warnings;
- use Test::More tests => 5;
- BEGIN { use_ok('char_strings') }
- require_ok('char_strings');
- my $val1 = "100";
- is(char_strings::CharPingPong($val1), "100", 'cstr1');
- my $val2 = "greetings";
- is(char_strings::CharPingPong($val2), "greetings", 'cstr2');
- # SF#2564192
- "this is a test" =~ /(\w+)$/;
- is(char_strings::CharPingPong($1), "test", "handles Magical");