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

Method test_no_delimiter

numpy/lib/tests/test__iotools.py:17–23  ·  view source on GitHub ↗

Test LineSplitter w/o delimiter

(self)

Source from the content-addressed store, hash-verified

15 "Tests the LineSplitter class."
16
17 def test_no_delimiter(self):
18 "Test LineSplitter w/o delimiter"
19 strg = " 1 2 3 4 5 # test"
20 test = LineSplitter()(strg)
21 assert_equal(test, ['1', '2', '3', '4', '5'])
22 test = LineSplitter('')(strg)
23 assert_equal(test, ['1', '2', '3', '4', '5'])
24
25 def test_space_delimiter(self):
26 "Test space delimiter"

Callers

nothing calls this directly

Calls 2

LineSplitterClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected