testcases: correctly enable lexical pragmata
eval 'package foo; use strict;' enables strict within eval, it does not leak into the surrounding scope. Also fix various warnings/compile errors found due to now enabled strict and warnings.
This commit is contained in:
committed by
Michael Stapelberg
parent
0a65b770e8
commit
1b1d7941ec
@ -17,7 +17,7 @@ cmd qq|[con_id="$first"] focus|;
|
||||
|
||||
cmd 'split v';
|
||||
|
||||
($nodes, $focus) = get_ws_content($tmp);
|
||||
my ($nodes, $focus) = get_ws_content($tmp);
|
||||
|
||||
is($nodes->[0]->{focused}, 0, 'split container not focused');
|
||||
|
||||
@ -27,7 +27,7 @@ cmd 'level up';
|
||||
my $split = $focus->[0];
|
||||
cmd 'level down';
|
||||
|
||||
my $second = open_empty_con($i3);
|
||||
$second = open_empty_con($i3);
|
||||
|
||||
isnt($first, $second, 'different container focused');
|
||||
|
||||
@ -62,10 +62,10 @@ is($nodes->[0]->{focused}, 0, 'split container not focused');
|
||||
# focus the split container
|
||||
cmd 'level up';
|
||||
($nodes, $focus) = get_ws_content($tmp);
|
||||
my $split = $focus->[0];
|
||||
$split = $focus->[0];
|
||||
cmd 'level down';
|
||||
|
||||
my $second = open_empty_con($i3);
|
||||
$second = open_empty_con($i3);
|
||||
|
||||
isnt($first, $second, 'different container focused');
|
||||
|
||||
|
Reference in New Issue
Block a user