perl6 / Pugs.hs

(ARCHIVE) Raku User's Golfing System in Haskell
84 stars 17 forks source link

Rat.Str() NYI #18

Closed coke closed 12 years ago

coke commented 12 years ago

t/spec/S32-trig/cos.t

has a test:

{

Str tests

is_approx((-1.04719755120631).Str.cos, 0.5, "Str.cos - -1.04719755120631");
is_approx(cos((-0.785398163404734).Str), 0.707106781186548, "cos(Str) - -0.785398163404734");

}

that fails with:

*\ No such method in class Rat: "&Str"