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

Method test_simple

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

Source from the content-addressed store, hash-verified

2496class TestMsort:
2497
2498 def test_simple(self):
2499 A = np.array([[0.44567325, 0.79115165, 0.54900530],
2500 [0.36844147, 0.37325583, 0.96098397],
2501 [0.64864341, 0.52929049, 0.39172155]])
2502 with pytest.warns(DeprecationWarning, match="msort is deprecated"):
2503 assert_almost_equal(
2504 msort(A),
2505 np.array([[0.36844147, 0.37325583, 0.39172155],
2506 [0.44567325, 0.52929049, 0.54900530],
2507 [0.64864341, 0.79115165, 0.96098397]]))
2508
2509
2510class TestMeshgrid:

Callers

nothing calls this directly

Calls 2

assert_almost_equalFunction · 0.90
msortFunction · 0.90

Tested by

no test coverage detected