- 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
17 lines
343 B
Perl
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);
|