method

assert_equal

v1_9_3_125 - Show latest stable - Class: Test::Unit::Assertions
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.

1Note

Not for floats

szeryf ยท Jul 14, 20092 thanks

You should use assert_in_delta when comparing floating-point numbers.