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

Method test_tab_delimiter

numpy/lib/tests/test__iotools.py:37–44  ·  view source on GitHub ↗

Test tab delimiter

(self)

Source from the content-addressed store, hash-verified

35 assert_equal(test, ['1 2 3 4', '5'])
36
37 def test_tab_delimiter(self):
38 "Test tab delimiter"
39 strg = " 1\t 2\t 3\t 4\t 5 6"
40 test = LineSplitter('\t')(strg)
41 assert_equal(test, ['1', '2', '3', '4', '5 6'])
42 strg = " 1 2\t 3 4\t 5 6"
43 test = LineSplitter('\t')(strg)
44 assert_equal(test, ['1 2', '3 4', '5 6'])
45
46 def test_other_delimiter(self):
47 "Test LineSplitter on delimiter"

Callers

nothing calls this directly

Calls 2

LineSplitterClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected