Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[t/spec] truncate() on Inf and NaN

git-svn-id: http://svn.pugscode.org/pugs@27526 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit e6382dab66d0fe81f0be97039f1dfa6d4fb4368d 1 parent 79d8122
kyle authored
View
5 S02-builtin_data_types/infinity.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 8;
+plan 9;
# L<S02/"Built-In Data Types" /Perl 6 should by default make standard IEEE floating point concepts visible>
@@ -38,3 +38,6 @@ plan 8;
# and:
# Inf eq Inf # same as
# ~Inf eq ~Inf # true
+
+#?rakudo todo 'truncate(Inf)'
+ok truncate(Inf) ~~ Inf, 'truncate(Inf) ~~ Inf';
View
5 S02-builtin_data_types/nan.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 6;
+plan 7;
# Undeterminate Math results
# see L<"http://mathworld.wolfram.com/Indeterminate.html">
@@ -19,3 +19,6 @@ is NaN ** 0, NaN, "NaN ** 0";
is 0**0 , 1, "0**0 is 1, _not_ NaN";
is Inf**0 , 1, "Inf**0 is 1, _not_ NaN";
+
+#?rakudo todo 'truncate(NaN)'
+ok truncate(NaN) ~~ NaN, 'truncate(NaN) ~~ NaN';
Please sign in to comment.
Something went wrong with that request. Please try again.