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

Method test_space_delimiter

numpy/lib/tests/test__iotools.py:25–31  ·  view source on GitHub ↗

Test space delimiter

(self)

Source from the content-addressed store, hash-verified

23 assert_equal(test, ['1', '2', '3', '4', '5'])
24
25 def test_space_delimiter(self):
26 "Test space delimiter"
27 strg = " 1 2 3 4 5 # test"
28 test = LineSplitter(' ')(strg)
29 assert_equal(test, ['1', '2', '3', '4', '', '5'])
30 test = LineSplitter(' ')(strg)
31 assert_equal(test, ['1 2 3 4', '5'])
32
33 def test_tab_delimiter(self):
34 "Test tab delimiter"

Callers

nothing calls this directly

Calls 2

LineSplitterClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected