swig/Examples/test-suite/perl5/preproc_runme.pl
Robert Stone 8b713d759d several testcases for perl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10403 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-30 21:02:46 +00:00

14 lines
278 B
Perl
Executable file

#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 6;
BEGIN { use_ok('preproc') }
require_ok('preproc');
# adapted from ../python/preproc_runme.py
is($preproc::endif, 1);
is($preproc::define, 1);
is($preproc::defined, 1);
is($preproc::one * 2, $preproc::two);