Some more tests for last non empty command output
This commit is contained in:
parent
0509855930
commit
e9340dfaaf
1 changed files with 11 additions and 0 deletions
|
|
@ -1100,9 +1100,20 @@ def draw_output(n, x='', m=True):
|
|||
self.ae(tuple(map(int, lco().split())), tuple(range(0, 30)))
|
||||
|
||||
# last non empty command output
|
||||
s = self.create_screen()
|
||||
draw_prompt('a'), draw_output(2, 'a')
|
||||
draw_prompt('b'), mark_output()
|
||||
self.ae(lco(), '')
|
||||
self.ae(lco(which=3), '0a\n1a')
|
||||
s.draw('running'), s.index(), s.carriage_return()
|
||||
self.ae(lco(which=3), 'running\n')
|
||||
s = self.create_screen()
|
||||
draw_prompt('p1')
|
||||
draw_output(30)
|
||||
self.ae(tuple(map(int, lco(which=3).split())), tuple(range(0, 30)))
|
||||
s = self.create_screen()
|
||||
draw_prompt('p1')
|
||||
draw_output(2, 'a')
|
||||
draw_prompt('p1')
|
||||
draw_prompt('p1')
|
||||
self.ae(lco(which=3), '0a\n1a')
|
||||
|
|
|
|||
Loading…
Reference in a new issue