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

Method test_sort_bigendian

numpy/core/tests/test_regression.py:66–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 assert_(not a.ravel('F').flags.owndata)
65
66 def test_sort_bigendian(self):
67 # Ticket #47
68 a = np.linspace(0, 10, 11)
69 c = a.astype(np.dtype('<f8'))
70 c.sort()
71 assert_array_almost_equal(c, a)
72
73 def test_negative_nd_indexing(self):
74 # Ticket #49

Callers

nothing calls this directly

Calls 5

linspaceMethod · 0.80
astypeMethod · 0.80
sortMethod · 0.80
dtypeMethod · 0.45

Tested by

no test coverage detected