On Mon, Aug 4, 2008 at 11:50 AM, William Rutiser <wruyahoo05 / comcast.net> wrote: > Ruby has a variety of means to extend or modify assert_equal to work this > way. Test::Unit actually has an assertion for this, better to use it than roll your own: require "test/unit" class FooTest < Test::Unit::TestCase def test_in_delta assert_in_delta 17.001, 17.00100001, 0.0001 end end --- Killer Ruby PDF Generation named after a magnificent sea creature: http://github.com/sandal/prawn | Non-tech stuff at: http://metametta.blogspot.com