Skip to content

Commit

Permalink
Cover 1e0.atanh
Browse files Browse the repository at this point in the history
Fixed by rakudo/rakudo@906719c

The S32-trig/* space is more appropriate for this test, but the tests there
are generated by a 500-line script (S32-trig/generate-tests.pl) that I don't know.
  • Loading branch information
zoffixznet committed Oct 21, 2016
1 parent a8e616b commit 163d683
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S02-types/num.t
Expand Up @@ -4,7 +4,7 @@ use Test;

#L<S02/The C<Num> and C<Rat> Types/Perl 6 intrinsically supports big integers>

plan 96;
plan 97;

isa-ok( EVAL(1.Num.perl), Num, 'EVAL 1.Num.perl is Num' );
is-approx( EVAL(1.Num.perl), 1, 'EVAL 1.Num.perl is 1' );
Expand Down Expand Up @@ -181,6 +181,10 @@ ok 0xFFFFFFFFFFFFFFFF > 1, '0xFFFFFFFFFFFFFFFF is not -1';
# RT #122593
ok Num === Num, 'Num === Num should be truthy, and not die';

{ # cover for https://github.com/rakudo/rakudo/commit/906719c8c528bb46c12ebd1ce857b7ec90ebe425
cmp-ok 1e0.atanh, '==', ∞, '1e0.atanh returns ∞';
}

{ # coverage; 2016-10-14
is-deeply Num.Range, -∞..∞, 'Num:U.Range gives -Inf to Inf range';

Expand Down

0 comments on commit 163d683

Please sign in to comment.