Skip to content

Commit 6a5a339

Browse files
committed
Fudge for Niecza.
1 parent c3a585e commit 6a5a339

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

S32-num/complex.t

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,19 @@ is_approx( (eval (1+0i).perl), 1, 'eval (1+0i).perl is 1' );
4242
isa_ok( eval((3i).perl), Complex, 'eval (3i).perl is Complex' );
4343
is_approx( (eval (3i).perl), 3i, 'eval (3i).perl is 3i' );
4444

45-
ok (1+0i).Real ~~ Real, "(1+0i).Real is a Real";
46-
is (1+0i).Real, 1, "(1+0i).Real is 1";
47-
isa_ok (1.2+0i).Int, Int, "(1.2+0i).Int is an Int";
48-
is (1.2+0i).Int, 1, "(1.2+0i).Int is 1";
49-
isa_ok (1.2.sin+0i).Rat, Rat, "(1.2.sin+0i).Rat is an Rat";
50-
is_approx (1.2.sin+0i).Rat, 1.2.sin, "(1.2.sin+0i).Rat is 1.2.sin";
51-
isa_ok (1.2+0i).Num, Num, "(1.2+0i).Num is an Num";
52-
is_approx (1.2+0i).Num, 1.2, "(1.2+0i).Num is 1.2";
53-
isa_ok (1.2+1i).Complex, Complex, "(1.2+1i).Complex is an Complex";
54-
is_approx (1.2+1i).Complex, 1.2+1i, "(1.2+1i).Complex is 1.2+1i";
45+
#?niecza skip "NYI"
46+
{
47+
ok (1+0i).Real ~~ Real, "(1+0i).Real is a Real";
48+
is (1+0i).Real, 1, "(1+0i).Real is 1";
49+
isa_ok (1.2+0i).Int, Int, "(1.2+0i).Int is an Int";
50+
is (1.2+0i).Int, 1, "(1.2+0i).Int is 1";
51+
isa_ok (1.2.sin+0i).Rat, Rat, "(1.2.sin+0i).Rat is an Rat";
52+
is_approx (1.2.sin+0i).Rat, 1.2.sin, "(1.2.sin+0i).Rat is 1.2.sin";
53+
isa_ok (1.2+0i).Num, Num, "(1.2+0i).Num is an Num";
54+
is_approx (1.2+0i).Num, 1.2, "(1.2+0i).Num is 1.2";
55+
isa_ok (1.2+1i).Complex, Complex, "(1.2+1i).Complex is an Complex";
56+
is_approx (1.2+1i).Complex, 1.2+1i, "(1.2+1i).Complex is 1.2+1i";
57+
}
5558

5659
# MUST: test .Str
5760

0 commit comments

Comments
 (0)