Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mattrajca/parrot into mat…
Browse files Browse the repository at this point in the history
…trajca-master
  • Loading branch information
cotto committed Jan 9, 2011
2 parents 002711c + 8d6df02 commit 4c3d1d0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion t/dynpmc/rational.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Tests the Rational PMC.
$S0 = config_hash['gmp']

unless $S0 goto no_gmp
plan(77)
plan(78)
loadlib $P1, 'rational'
test_init()
test_destroy()
Expand Down Expand Up @@ -74,6 +74,7 @@ Tests the Rational PMC.
test_abs()
test_cmp()
test_equal()
test_equal_int()
.return()

no_gmp:
Expand Down Expand Up @@ -136,6 +137,15 @@ CODE
CODE
.end

.sub test_equal_int
$P0 = new ['Rational']
$P0 = "2/1"

eq $P0, 2, success
success:
ok(1, 'is_equal on Rational and integer')
.end

.sub test_cmp
new $P2, 'Rational'
new $P3, 'Rational'
Expand Down

0 comments on commit 4c3d1d0

Please sign in to comment.