Skip to content

Commit

Permalink
Redo test for Rational.Range
Browse files Browse the repository at this point in the history
The test was added[^1] a day ago as part of a fix for a ticket[^2] and
is not part of 6.c-errata. It's testing incorrect behaviour.
See Rakudo commit[^2] for rationale.

[1] 99f7d695a6
[2] https://rt.perl.org/Ticket/Display.html?id=130427
[3] rakudo/rakudo@b3ab375f0cdca4a5c
  • Loading branch information
zoffixznet committed Dec 31, 2016
1 parent fd7c11b commit 96cca2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion S32-num/fatrat.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 285;
plan 286;

# Basic test functions specific to FatRats.

Expand Down Expand Up @@ -302,4 +302,8 @@ subtest '=== with 0-denominator FatRats' => {
is-deeply <-2/0>F === <-5/2>F, False, '-2/0 === -5/2';
}

# RT#130427
cmp-ok FatRat.Range, '===', -∞..∞,
'FatRat.Range is from -inf to inf, including end points';

# vim: ft=perl6
4 changes: 2 additions & 2 deletions S32-num/rat.t
Expand Up @@ -312,8 +312,8 @@ subtest '0.9999999999999999999999 to string conversions' => {
}

# RT#130427
cmp-ok Rat.Range, '===', -∞^..^∞,
'Rat.Range is from -inf to inf, excluding end points';
cmp-ok Rat.Range, '===', -∞..∞,
'Rat.Range is from -inf to inf, including end points';

subtest '== with 0-denominator Rats' => {
plan 18;
Expand Down

0 comments on commit 96cca2d

Please sign in to comment.