diff options
Diffstat (limited to 'Examples/test-suite/perl5/grouping_runme.pl')
| -rwxr-xr-x | Examples/test-suite/perl5/grouping_runme.pl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Examples/test-suite/perl5/grouping_runme.pl b/Examples/test-suite/perl5/grouping_runme.pl new file mode 100755 index 0000000..2009cce --- /dev/null +++ b/Examples/test-suite/perl5/grouping_runme.pl @@ -0,0 +1,17 @@ +#!/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); |
