Add catches_strings test to test throws char * typemap
This commit is contained in:
parent
034e2358f9
commit
4a29229bab
21 changed files with 286 additions and 0 deletions
10
Examples/test-suite/perl5/catches_strings_runme.pl
Normal file
10
Examples/test-suite/perl5/catches_strings_runme.pl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 3;
|
||||
BEGIN { use_ok('catches_strings') }
|
||||
require_ok('catches_strings');
|
||||
|
||||
eval {
|
||||
catches_strings::StringsThrower::charstring();
|
||||
};
|
||||
like($@, qr/\bcharstring message/, "Should have thrown an exception");
|
||||
Loading…
Add table
Add a link
Reference in a new issue