def fail_if_array_equal(x, y, err_msg='<STR_LIT>', verbose=True):
def compare(x, y):<EOL><INDENT>return (not np.alltrue(approx(x, y)))<EOL><DEDENT>assert_array_compare(compare, x, y, err_msg=err_msg, verbose=verbose,<EOL>header='<STR_LIT>')<EOL>
Raises an assertion error if two masked arrays are not equal (elementwise).