()
| 54 | expect_token(expected, cell, i) |
| 55 | |
| 56 | def test_multiline_token(): |
| 57 | cell = '\n'.join([ |
| 58 | '"""\n\nxxxxxxxxxx\n\n"""', |
| 59 | '5, """', |
| 60 | 'docstring', |
| 61 | 'multiline token', |
| 62 | '""", [', |
| 63 | '2, 3, "complicated"]', |
| 64 | 'b = hello("string", there)' |
| 65 | ]) |
| 66 | expected = 'hello' |
| 67 | start = cell.index(expected) + 1 |
| 68 | for i in range(start, start + len(expected)): |
| 69 | expect_token(expected, cell, i) |
| 70 | expected = 'hello' |
| 71 | start = cell.index(expected) + 1 |
| 72 | for i in range(start, start + len(expected)): |
| 73 | expect_token(expected, cell, i) |
| 74 | |
| 75 | def test_nested_call(): |
| 76 | cell = "foo(bar(a=5), b=10)" |
nothing calls this directly
no test coverage detected