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

Method test_variable_fixed_width

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

LineSplitterClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected