Permalink
Browse files

[t] Add tests to i_abs in Complex PMC

  • Loading branch information...
fernandobrito committed Dec 15, 2010
1 parent 402fd88 commit aea1cf61b643b3cd0b3e7d29198a334f0898a397
Showing with 4 additions and 1 deletion.
  1. +4 −1 t/pmc/complex.t
View
@@ -20,7 +20,7 @@ Tests the Complex PMC.
.include 'fp_equality.pasm'
.include "iglobals.pasm"
- plan(619)
+ plan(620)
string_parsing()
exception_malformed_string__real_part()
@@ -592,6 +592,9 @@ handler:
$P1 = new ['Undef']
abs $P1, $P0
is( $P1, "5", 'abs 4+3j -> 5' )
+
+ abs $P0
+ is( $P1, "5", 'abs (in-place) 4+3j -> 5' )
.end
.sub check_whether_interface_is_done

0 comments on commit aea1cf6

Please sign in to comment.