t/171-config-migrate: escape braces for newer Perl versions

This commit is contained in:
Michael Stapelberg 2017-08-19 17:44:35 +02:00
parent 69efe0176e
commit 5738ea10bb
1 changed files with 4 additions and 4 deletions

View File

@ -153,7 +153,7 @@ ok(line_exists($output, qr|^bindsym Mod1\+s restart$|), 'restart unchanged');
ok(line_exists($output, qr|^bindsym Mod1\+s reload$|), 'reload unchanged'); ok(line_exists($output, qr|^bindsym Mod1\+s reload$|), 'reload unchanged');
ok(line_exists($output, qr|^bindsym Mod1\+s exit$|), 'exit unchanged'); ok(line_exists($output, qr|^bindsym Mod1\+s exit$|), 'exit unchanged');
ok(line_exists($output, qr|^bindcode Mod1\+c exec /usr/bin/urxvt$|), 'bind changed to bindcode'); ok(line_exists($output, qr|^bindcode Mod1\+c exec /usr/bin/urxvt$|), 'bind changed to bindcode');
ok(line_exists($output, qr|^mode "asdf" {$|), 'mode asdf unchanged'); ok(line_exists($output, qr|^mode "asdf" \{$|), 'mode asdf unchanged');
ok(line_exists($output, qr|^bindcode 36 mode \"default\"$|), 'mode default unchanged'); ok(line_exists($output, qr|^bindcode 36 mode \"default\"$|), 'mode default unchanged');
ok(line_exists($output, qr|^}$|), 'closing mode bracket still there'); ok(line_exists($output, qr|^}$|), 'closing mode bracket still there');
@ -336,13 +336,13 @@ ok(line_exists($output, qr|^bindsym Mod1\+3 move container to workspace work|),
##################################################################### #####################################################################
$output = migrate_config(''); $output = migrate_config('');
ok(line_exists($output, qr|bar {|), 'i3bar added'); ok(line_exists($output, qr|bar \{|), 'i3bar added');
$output = migrate_config('workspace_bar enable'); $output = migrate_config('workspace_bar enable');
ok(line_exists($output, qr|bar {|), 'i3bar added'); ok(line_exists($output, qr|bar \{|), 'i3bar added');
$output = migrate_config('workspace_bar no'); $output = migrate_config('workspace_bar no');
ok(!line_exists($output, qr|bar {|), 'no i3bar added'); ok(!line_exists($output, qr|bar \{|), 'no i3bar added');
##################################################################### #####################################################################
# check whether the mode command gets quotes # check whether the mode command gets quotes