swig/Examples/test-suite/perl5/grouping_runme.pl
Karl Wette 7cd9063b52 Remove execute permissions from various non-executable files
- source files and Makefiles need never be executable
- scripts are run directly by their interpreters in the
  test suites, so also do not need to be executable
2014-05-02 20:06:11 +02:00

17 lines
343 B
Perl

#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 6;
BEGIN { use_ok('grouping') }
require_ok('grouping');
# adapted from ../python/grouping_runme.py
is(grouping::test1(42), 42);
isnt(eval { grouping::test2(42) }, undef);
is(grouping::do_unary(37, $grouping::NEGATE), -37);
$grouping::test3 = 42;
is($grouping::test3, 42);