Skip to content

Commit

Permalink
[S32-num] Add some tests for Rat representation of Inf
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Sep 13, 2010
1 parent 2f690f9 commit 326ee0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions S32-num/rat.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 802;
plan 804;

# Basic test functions specific to rational numbers.

Expand Down Expand Up @@ -132,11 +132,12 @@ is_approx sin(5.0e0), sin(10/2), 'sin(Rat) works';
# wisdom of allowing math with zero denominator Rats,
# so I'm holding off on writing tests for it.

# SHOULD: Add NaN / Inf tests

#?rakudo todo "NaN.Rat == NaN"
is NaN.Rat, NaN, "NaN.Rat == NaN";

is Inf.Rat, Inf, "Inf.Rat == Inf";
is (-Inf).Rat, -Inf, "(-Inf).Rat == -Inf";

# RT #74648
isa_ok Inf.Int / 1, Rat, "Inf.Int / 1 is a Rat";

Expand Down

0 comments on commit 326ee0a

Please sign in to comment.