diff options
| author | Mark Murray <markm@FreeBSD.org> | 1998-09-09 07:00:04 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 1998-09-09 07:00:04 +0000 |
| commit | ff6b7ba98e8d4aab04cbe2bfdffdfc9171c1812b (patch) | |
| tree | 58b20e81687d6d5931f120b50802ed21225bf440 /contrib/perl5/t/op/arith.t | |
Diffstat (limited to 'contrib/perl5/t/op/arith.t')
| -rwxr-xr-x | contrib/perl5/t/op/arith.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/perl5/t/op/arith.t b/contrib/perl5/t/op/arith.t new file mode 100755 index 0000000000000..43af807b8b460 --- /dev/null +++ b/contrib/perl5/t/op/arith.t @@ -0,0 +1,12 @@ +#!./perl + +print "1..4\n"; + +sub try ($$) { + print +($_[1] ? "ok" : "not ok"), " $_[0]\n"; +} + +try 1, 13 % 4 == 1; +try 2, -13 % 4 == 3; +try 3, 13 % -4 == -3; +try 4, -13 % -4 == -1; |
