Permalink
Browse files

[S32-num] Add some tests for Rat representation of Inf

  • Loading branch information...
leto committed Sep 13, 2010
1 parent 2f690f9 commit 326ee0a072ef21ccbd5f696667c87e2d125f29bf
Showing with 4 additions and 3 deletions.
  1. +4 −3 S32-num/rat.t
View
@@ -2,7 +2,7 @@ use v6;
use Test;
plan 802;
plan 804;
# Basic test functions specific to rational numbers.
@@ -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";

0 comments on commit 326ee0a

Please sign in to comment.