MCPcopy Create free account
hub / github.com/ipython/ipython / test_spaces

Function test_spaces

IPython/core/tests/test_inputsplitter.py:71–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69# Tests
70#-----------------------------------------------------------------------------
71def test_spaces():
72 tests = [('', 0),
73 (' ', 1),
74 ('\n', 0),
75 (' \n', 1),
76 ('x', 0),
77 (' x', 1),
78 (' x',2),
79 (' x',4),
80 # Note: tabs are counted as a single whitespace!
81 ('\tx', 1),
82 ('\t x', 2),
83 ]
84 tt.check_pairs(isp.num_ini_spaces, tests)
85
86
87def test_remove_comments():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected