Skip to content

Commit

Permalink
[t/spec] Tests on Rat.new
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@28746 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
kyle committed Oct 11, 2009
1 parent f4a2072 commit add4987
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions S32-num/rat.t
Expand Up @@ -12,6 +12,10 @@ isa_ok(1 / 4, Rat, "/ makes a Rat");
isa_ok( 1.Int.Rat, Rat, "cast of Int makes a Rat");
isa_ok( 1.Num.Rat, Rat, "cast of Num makes a Rat");

isa_ok( Rat.new, Rat, 'Rat.new is Rat' );
#?rakudo skip 'maybe related to RT 68958'
isa_ok( eval Rat.new.perl, Rat, 'eval Rat.new.perl is Rat' );

# Test ~
is(~(Rat.new(1,4)), ~(0.25), "Rats stringify properly");
is(~(Rat.new(-1,2)), ~(-0.5), "Rats stringify properly");
Expand Down

0 comments on commit add4987

Please sign in to comment.