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

Function test_multiline_statement

IPython/utils/tests/test_tokenutil.py:123–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 nt.assert_equal(offset, 4)
122
123def test_multiline_statement():
124 cell = """a = (1,
125 3)
126
127int()
128map()
129"""
130 for c in range(16, 22):
131 yield lambda cell, c: expect_token("int", cell, c), cell, c
132 for c in range(22, 28):
133 yield lambda cell, c: expect_token("map", cell, c), cell, c

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected