MCPcopy Create free account
hub / github.com/numpy/numpy / _assert_equal_on_sequences

Function _assert_equal_on_sequences

numpy/ma/testutils.py:82–90  ·  view source on GitHub ↗

Asserts the equality of two non-array sequences.

(actual, desired, err_msg='')

Source from the content-addressed store, hash-verified

80
81
82def _assert_equal_on_sequences(actual, desired, err_msg=''):
83 """
84 Asserts the equality of two non-array sequences.
85
86 """
87 assert_equal(len(actual), len(desired), err_msg)
88 for k in range(len(desired)):
89 assert_equal(actual[k], desired[k], f'item={k!r}\n{err_msg}')
90 return
91
92
93def assert_equal_records(a, b):

Callers 1

assert_equalFunction · 0.85

Calls 1

assert_equalFunction · 0.70

Tested by

no test coverage detected