We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 522a9c7 commit 860dc71Copy full SHA for 860dc71
S02-types/nan.t
@@ -2,7 +2,7 @@ use v6;
2
3
use Test;
4
5
-plan 24;
+plan 26;
6
7
# Undeterminate Math results
8
# see L<"http://mathworld.wolfram.com/Indeterminate.html">
@@ -55,5 +55,10 @@ ok (my num $ = NaN) === (my num $ = NaN), "NaN value identity (native num)";
55
is $x, NaN, 'assigning NaN to Num works without errors';
56
}
57
58
+{ # RT #129002
59
+ my $mynan = my class MyNum is Num {}.new(NaN);
60
+ is-deeply $mynan == NaN, False, 'sublcass of NaN !== NaN';
61
+ is-deeply $mynan === NaN, False, 'sublcass of NaN !=== NaN';
62
+}
63
64
# vim: ft=perl6
0 commit comments