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

Function test_sort_matrix_none

numpy/matrixlib/tests/test_interaction.py:41–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def test_sort_matrix_none():
42 # 2018-04-29: moved here from core.tests.test_multiarray
43 a = np.matrix([[2, 1, 0]])
44 actual = np.sort(a, axis=None)
45 expected = np.matrix([[0, 1, 2]])
46 assert_equal(actual, expected)
47 assert_(type(expected) is np.matrix)
48
49
50def test_partition_matrix_none():

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
assert_Function · 0.90
sortMethod · 0.80

Tested by

no test coverage detected