MCPcopy Index your code
hub / github.com/numpy/numpy / compare_results

Function compare_results

numpy/lib/tests/test_shape_base.py:810–813  ·  view source on GitHub ↗

Compare lists of arrays.

(res, desired)

Source from the content-addressed store, hash-verified

808
809# Utility
810def compare_results(res, desired):
811 """Compare lists of arrays."""
812 for x, y in zip(res, desired, strict=False):
813 assert_array_equal(x, y)

Callers 12

test_integer_splitMethod · 0.85
test_equal_splitMethod · 0.85
test_1D_arrayMethod · 0.85
test_2D_arrayMethod · 0.85
test_2D_arrayMethod · 0.85
test_3D_arrayMethod · 0.85

Calls 1

assert_array_equalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…