Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

implement Int.Rat, pass unpolar.t

  • Loading branch information...
commit 179d411e1815a74240cadf2e8da42df1ec936318 1 parent 11972a9
Moritz Lenz authored July 04, 2011
6  src/core/Int.pm
... ...
@@ -1,3 +1,5 @@
  1
+class Rat { ... }
  2
+
1 3
 my class Int {
2 4
     method Bool() {
3 5
         nqp::p6bool(
@@ -14,6 +16,10 @@ my class Int {
14 16
         nqp::p6box_n(nqp::unbox_i(self));
15 17
     }
16 18
 
  19
+    method Rat() {
  20
+        Rat.new(self, 1);
  21
+    }
  22
+
17 23
     method abs() {
18 24
         nqp::p6box_i(nqp::abs_i(nqp::unbox_i(self)));
19 25
     }
2  t/spectest.data
@@ -531,7 +531,7 @@ S32-num/polar.t
531 531
 # S32-num/rounders.t
532 532
 # S32-num/sign.t
533 533
 # S32-num/sqrt.t
534  
-# S32-num/unpolar.t
  534
+S32-num/unpolar.t
535 535
 S32-scalar/defined.t
536 536
 # S32-scalar/undef.t
537 537
 S32-str/append.t

0 notes on commit 179d411

Please sign in to comment.
Something went wrong with that request. Please try again.