« Previous -
Version 4/15
(diff) -
Next » -
Current version
Arthur Schreiber, 05/15/2008 06:56 AM
Bugs found while writing specs
Our policy of dealing with bugs found in MRI
- Ruby-Core must be notified
- Use #ruby_bug guard for the spec code that breaks due to MRI bug
- Add the bug to this page below
- MRI specific bug should be filed (optional, but highly desirable)
Bugs in the Complex library
Incompatible changes to the Math module
Complex modifies the Math library in a way that breaks compatibility in many ways.
1 Math.log("10") # => 2.30258509299405
2 require "complex"
3 Math.log("10") # => raises NoMethodError: undefined method `polar' for "10":String
Running the Math specs after the Complex specs, exposes a total of 57 errors/failures.
bin/mspec -t r spec/ruby/1.8/library/complex/ spec/ruby/1.8/core/math/ ... 77 files, 441 examples, 985 expectations, 40 failures, 17 errors
The following patch fixes these bugs: http://pastie.caboo.se/197522.txt
