Skip to content

Commit bfefc54

Browse files
committed
Add tests for for 1e0 ** bigint.
Particularly test that the type is correctly a Num.
1 parent 9119a79 commit bfefc54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

S32-num/power.t

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 50;
5+
plan 52;
66

77
# Real **
88
is(0 ** 0, 1, "0 ** 0 == 1");
@@ -14,6 +14,8 @@ is(4 ** 2, 16, "4 ** 2 == 16");
1414

1515
is 0 ** 4553535345364535345634543534, 0, "0 ** 4553535345364535345634543534 == 0";
1616
is 1 ** 4553535345364535345634543534, 1, "1 ** 4553535345364535345634543534 == 1";
17+
is 1e0 ** 4553535345364535345634543534, 1, "1e0 ** 4553535345364535345634543534 == 1";
18+
isa_ok 1e0 ** 4553535345364535345634543534, Num, "1e0 ** 4553535345364535345634543534 is a Num";
1719
#?rakudo.parrot 2 todo "Simple bigint optimizations NYI"
1820
is (-1) ** 4553535345364535345634543534, 1, "-1 ** 4553535345364535345634543534 == 1";
1921
is (-1) ** 4553535345364535345634543533, -1, "-1 ** 4553535345364535345634543534 == -1";

0 commit comments

Comments
 (0)