import source from 1.3.40
[external/swig.git] / Examples / test-suite / perl5 / char_strings_runme.pl
1 use strict;
2 use warnings;
3 use Test::More tests => 5;
4 BEGIN { use_ok('char_strings') }
5 require_ok('char_strings');
6
7 my $val1 = "100";
8 is(char_strings::CharPingPong($val1), "100", 'cstr1');
9
10 my $val2 = "greetings";
11 is(char_strings::CharPingPong($val2), "greetings", 'cstr2');
12
13 # SF#2564192
14 "this is a test" =~ /(\w+)$/;
15 is(char_strings::CharPingPong($1), "test", "handles Magical");