Skip to content

Commit b04f684

Browse files
committed
RT #107492, mod with negative divisor
1 parent 3edaa5f commit b04f684

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S03-operators/arith.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6;
22
use Test;
3-
plan 140;
3+
plan 142;
44

55
my $five = abs(-5);
66

@@ -59,6 +59,10 @@ tryeq -13.0 % -4.0, -1;
5959
tryeq 2.5 % 1, .5;
6060
}
6161

62+
# RT #107492
63+
ok 9 % (-9) == 0, 'modulo with negative divisor (1)';
64+
ok (-9) % (-9) == 0, 'modulo with negative divisor (2)';
65+
6266

6367
my $limit = 1e6;
6468

0 commit comments

Comments
 (0)