tests: introduce is_num_children test
This makes it clearer what the tests are actually doing and kills quite a bit of useless repetitions
This commit is contained in:
@ -45,8 +45,7 @@ my $win = open_window;
|
||||
my $scratch = open_special;
|
||||
cmd '[class="special"] move scratchpad';
|
||||
|
||||
my ($nodes, $focus) = get_ws_content($tmp);
|
||||
is(scalar @$nodes, 1, 'one window on current ws');
|
||||
is_num_children($tmp, 1, 'one window on current ws');
|
||||
|
||||
my $otmp = fresh_workspace;
|
||||
cmd 'scratchpad show';
|
||||
|
Reference in New Issue
Block a user