extra cursors: Add some tests for invalid input handling
This commit is contained in:
parent
1c9a2dae86
commit
bacd13d3a7
1 changed files with 7 additions and 0 deletions
|
|
@ -1626,6 +1626,13 @@ def a(which: int, *positions: tuple[int, int], region=None) -> dict[int, tuple[i
|
|||
self.ae(a(2, (1, 2), (1, 3)), {-1: {(2, 3), (2, 2)}, 2: {(1, 2), (1, 3)}})
|
||||
self.ae(a(0, (1, 2), (2, 3)), {-1: {(2, 2)}, 2: {(1, 3)}})
|
||||
self.ae(a(0, region=True), {})
|
||||
s.cursor.x, s.cursor.y = 1, 2
|
||||
parse_bytes(s, b'\x1b[>3;0 q') # ]
|
||||
self.ae(current(), {3: {(1, 2)}})
|
||||
parse_bytes(s, b'\x1b[>3;2:3 q') # ]
|
||||
self.ae(current(), {3: {(1, 2)}})
|
||||
parse_bytes(s, b'\x1b[>0;4:3:1:4 q') # ]
|
||||
self.ae(current(), {})
|
||||
|
||||
|
||||
def detect_url(self, scale=1):
|
||||
|
|
|
|||
Loading…
Reference in a new issue