the assertion is too loose, shouldn't this be 
``assert_equal(res[2], -1, ...)``
there is a small chance that equality doesn't hold for all platforms
the we could use both (just add an almost equal)
```
assert_(res[2] >= -1, "R factor is in [-1..1]")
assert_almost_equal(res[2]), -1)
```