Changeset 21181

Show
Ignore:
Timestamp:
07/03/08 15:00:58 (3 months ago)
Author:
moritz
Message:

[spec] fixed complex log10() tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S29-num/log.t

    r21177 r21181  
    2828#?rakudo 2 todo 'complex log()' 
    2929is_approx(log(-1 + 0i,), 0 + 1i * pi, "got the log of -1"); 
    30 is_approx(log10(-1 + 0i), 0 + 1i * pi, "got the log10 of -1"); 
     30is_approx(log10(-1 + 0i), 0 + 1i * pi / log(10), "got the log10 of -1"); 
    3131 
    3232# log(exp(1+i pi)) = 1 + i pi 
     
    3434#?rakudo 2 todo 'complex log()' 
    3535is_approx(log(-exp(1)) + 0i, 1 + 1i * pi, "got the log of -e"); 
    36 is_approx(log10(-10 + 0i), 1 + 1i * pi, "got the log10 of -10"); 
     36is_approx(log10(-10 + 0i), 1 + 1i * pi / log(10), "got the log10 of -10"); 
    3737 
    3838#?pugs todo 'feature'