MCPcopy Index your code
hub / github.com/numpy/numpy / test_splitlines

Method test_splitlines

numpy/_core/tests/test_defchararray.py:637–641  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

635 assert_equal(A.tolist(), tgt)
636
637 def test_splitlines(self):
638 A = np.char.array(['abc\nfds\nwer']).splitlines()
639 assert_(issubclass(A.dtype.type, np.object_))
640 assert_(A.shape == (1,))
641 assert_(len(A[0]) == 3)
642
643 def test_swapcase(self):
644 A, B = self.A(), self.B()

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
splitlinesMethod · 0.80

Tested by

no test coverage detected