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

Method test_splitlines

numpy/core/tests/test_defchararray.py:518–522  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

516 assert_equal(A.tolist(), tgt)
517
518 def test_splitlines(self):
519 A = np.char.array(['abc\nfds\nwer']).splitlines()
520 assert_(issubclass(A.dtype.type, np.object_))
521 assert_(A.shape == (1,))
522 assert_(len(A[0]) == 3)
523
524 def test_swapcase(self):
525 tgt = [[b' ABC ', b''],

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
splitlinesMethod · 0.80

Tested by

no test coverage detected