david135 / ypsilon

Automatically exported from code.google.com/p/ypsilon
Other
0 stars 0 forks source link

fxif handles invalid arguments wrongfully #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. (fxif 0.0 2 3)
> error in fxif: expected fixnum, but got 0.0, as argument 1
2. (fxif 0 2.0 3)
> error in fxif: expected fixnum, but got if.null?, as argument 4
3. (fxif 0 2 3.0)
> 21973056

What is the expected output? What do you see instead?
error in fxif: expected fixnum, but got XXX, as argument N

What version of the product are you using? On what operating system?
0.9.6-trunk/r506; Windows 7 (64bit)

Please provide any additional information below.

Original issue reported on code.google.com by xunni...@gmail.com on 22 Apr 2014 at 2:16