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

Method test_variable_fixed_width

numpy/lib/tests/test__iotools.py:71–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 assert_equal(test, ['1 3 4 5 6'])
70
71 def test_variable_fixed_width(self):
72 strg = " 1 3 4 5 6# test"
73 test = LineSplitter((3, 6, 6, 3))(strg)
74 assert_equal(test, ['1', '3', '4 5', '6'])
75 #
76 strg = " 1 3 4 5 6# test"
77 test = LineSplitter((6, 6, 9))(strg)
78 assert_equal(test, ['1', '3 4', '5 6'])
79
80# -----------------------------------------------------------------------------
81

Callers

nothing calls this directly

Calls 2

LineSplitterClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected