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

Function compare_results

numpy/lib/tests/test_shape_base.py:781–787  ·  view source on GitHub ↗

Compare lists of arrays.

(res, desired)

Source from the content-addressed store, hash-verified

779
780# Utility
781def compare_results(res, desired):
782 """Compare lists of arrays."""
783 if len(res) != len(desired):
784 raise ValueError("Iterables have different lengths")
785 # See also PEP 618 for Python 3.10
786 for x, y in zip(res, desired):
787 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