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

Method test_tab_delimiter

numpy/lib/tests/test__iotools.py:33–40  ·  view source on GitHub ↗

Test tab delimiter

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

LineSplitterClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected