method

assert_equal

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: Assertions
assert_equal(exp, act, msg = nil) public

Fails unless exp == act printing the difference between the two, if possible.

If there is no visible difference but the assertion fails, you should suspect that your #== is buggy, or your inspect output is missing crucial details.

For floats use assert_in_delta.

See also: MiniTest::Assertions.diff

Show source
Register or log in to add new notes.