bioruby/bioruby — pull request #54 by csw (2012-05-11 16:19:50+00:00)
Title: Floating-point precision fixes for test/unit/bio/test_tree.rb, so tests pass on JRuby

On JRuby, three of the unit tests in test/unit/bio/test_tree.rb were failing because of slightly different floating point output than MRI, e.g.

```
<"0.0845"> expected but was
<"0.0845000000000000">.
```

I've changed the formatting for these tests to use "%.4f" instead of "%.15g" as the formatting escape, and ensured all reference values have the corresponding four decimal places. The tests now pass under JRuby and MRI.