Skip to content

Commit

Permalink
Test Complex.cis
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jun 7, 2017
1 parent 79b62cf commit 71ab9b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions S32-num/cool-num.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 43;
plan 45;

=begin pod
Expand Down Expand Up @@ -89,7 +89,10 @@ is "17".sign, 1, '"17".sign == 1';
is "-17".sign, -1, '"-17".sign == -1';
is "0".sign, 0, '"0".sign == 0';

is-approx "17".cis, 17.cis, '"17".cis == 17.cis';
is-approx "17".cis, 17.cis, '"17".cis == 17.cis';
is-approx <4+2i>.cis, <-0.0884610445653817-0.102422080056674i>, '<4+2i>.cis';
is-approx i.cis, <0.367879441171442+0i>, 'i.cis';

is-approx "17".unpolar("42"), 17.unpolar(42), '"17".unpolar("42") == 17.unpolar(42)';

# vim: ft=perl6

0 comments on commit 71ab9b3

Please sign in to comment.