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

Method assert_path_equal

numpy/core/tests/test_einsum.py:1093–1100  ·  view source on GitHub ↗
(self, comp, benchmark)

Source from the content-addressed store, hash-verified

1091 return operands
1092
1093 def assert_path_equal(self, comp, benchmark):
1094 # Checks if list of tuples are equivalent
1095 ret = (len(comp) == len(benchmark))
1096 assert_(ret)
1097 for pos in range(len(comp) - 1):
1098 ret &= isinstance(comp[pos + 1], tuple)
1099 ret &= (comp[pos + 1] == benchmark[pos + 1])
1100 assert_(ret)
1101
1102 def test_memory_contraints(self):
1103 # Ensure memory constraints are satisfied

Callers 5

test_long_pathsMethod · 0.95
test_edge_pathsMethod · 0.95
test_path_type_inputMethod · 0.95

Calls 1

assert_Function · 0.90

Tested by

no test coverage detected