Skip to content
Browse files

[t] Add tests to i_neg in Complex PMC

  • Loading branch information...
1 parent f1653be commit 402fd884286abcb062415a2340b8f054ba239c9a @fernandobrito committed Dec 15, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 t/pmc/complex.t
View
9 t/pmc/complex.t
@@ -20,7 +20,7 @@ Tests the Complex PMC.
.include 'fp_equality.pasm'
.include "iglobals.pasm"
- plan(617)
+ plan(619)
string_parsing()
exception_malformed_string__real_part()
@@ -662,6 +662,13 @@ handler:
set $N1, $P1[1]
.fp_eq_ok($N0, -1.3, 'test complex negative')
.fp_eq_ok($N1, -1.7, '... and the imag port')
+
+ neg $P0
+ is( $P0, "-1.3-1.7i", 'test in-place neg on 1.3+1.7i' )
+
+ set $P0, "-1.3 - 1.7i"
+ neg $P0
+ is( $P0, "1.3+1.7i", 'test in-place neg on -1.3-1.7i' )
.end
.sub test_clone

0 comments on commit 402fd88

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