method

assert_equal

Importance_1

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

assert_equal(exp, act, msg = nil) public

Tests if expected is equal to actual.

An optional failure message may be provided as the final argument.

Show source
Register or log in to add new notes.
July 14, 2009
2 thanks

Not for floats

You should use assert_in_delta when comparing floating-point numbers.