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

Method test_simple

numpy/lib/tests/test_function_base.py:2512–2521  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2510class TestMeshgrid:
2511
2512 def test_simple(self):
2513 [X, Y] = meshgrid([1, 2, 3], [4, 5, 6, 7])
2514 assert_array_equal(X, np.array([[1, 2, 3],
2515 [1, 2, 3],
2516 [1, 2, 3],
2517 [1, 2, 3]]))
2518 assert_array_equal(Y, np.array([[4, 4, 4],
2519 [5, 5, 5],
2520 [6, 6, 6],
2521 [7, 7, 7]]))
2522
2523 def test_single_input(self):
2524 [X] = meshgrid([1, 2, 3, 4])

Callers

nothing calls this directly

Calls 2

meshgridFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected