Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > test/unit/assertionsライブラリ > Test::Unit::Assertionsモジュール > assert_in_delta
assert_in_delta(expected_float, actual_float, delta, message="") -> ()
(expected_float.to_f - actual_float.to_f).abs <= delta.to_f が真ならパスします。
delta は正の数でなければならない。