Skip to content

Commit 22a02fc

Browse files
committed
Added another complex test.
1 parent 9e1a6c4 commit 22a02fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

S32-num/exp.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6;
22
use Test;
3-
plan 71;
3+
plan 72;
44

55
# L<S32::Numeric/Numeric/"=item exp">
66

@@ -42,6 +42,7 @@ is(exp(-Inf), 0, 'exp(-Inf) == 0');
4242
is(exp(NaN), NaN, 'exp(NaN) == NaN');
4343
is_approx(exp(log(100)),100, 'e^(log(100))=100');
4444

45+
is_approx((1i*$pi).exp, -1, '(i $pi).exp == -1');
4546
is_approx(exp(1i*$pi), -1, 'exp(i $pi) == -1');
4647
is_approx(exp(-1i*$pi), -1, 'exp(-i $pi) == -1');
4748

0 commit comments

Comments
 (0)