MCPcopy
hub / github.com/numpy/numpy / _assert_equal_on_sequences

Function _assert_equal_on_sequences

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

Asserts the equality of two non-array sequences.

(actual, desired, err_msg='')

Source from the content-addressed store, hash-verified

88
89
90def _assert_equal_on_sequences(actual, desired, err_msg=''):
91 """
92 Asserts the equality of two non-array sequences.
93
94 """
95 assert_equal(len(actual), len(desired), err_msg)
96 for k in range(len(desired)):
97 assert_equal(actual[k], desired[k], f'item={k!r}\n{err_msg}')
98
99
100def assert_equal_records(a, b):

Callers 1

assert_equalFunction · 0.85

Calls 1

assert_equalFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…