Show More
@@ -108,6 +108,12 b' def test_line_at_cursor():' | |||
|
108 | 108 | assert line == "", ("Expected '', got %r" % line) |
|
109 | 109 | assert offset == 0, ("Expected '', got %r" % line) |
|
110 | 110 | |
|
111 | # The position after a newline should be the start of the following line. | |
|
112 | cell = "One\nTwo\n" | |
|
113 | (line, offset) = line_at_cursor(cell, cursor_pos=4) | |
|
114 | nt.assert_equal(line, "Two\n") | |
|
115 | nt.assert_equal(offset, 4) | |
|
116 | ||
|
111 | 117 | def test_muliline_statement(): |
|
112 | 118 | cell = """a = (1, |
|
113 | 119 | 3) |
General Comments 0
You need to be logged in to leave comments.
Login now