Ensure config variables match on longest-length (#2306)

fixes #2235
This commit is contained in:
Kyle Kneitinger
2016-04-26 00:20:42 -07:00
committed by Michael Stapelberg
parent 23beac46b7
commit 2123888d4d
2 changed files with 31 additions and 1 deletions

View File

@ -79,6 +79,22 @@ EOT
is(launch_get_border($config), 'none', 'no border');
#####################################################################
# test that longest matching variable name is substituted
#####################################################################
$config = <<'EOT';
# i3 config file (v4)
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
set $var normal title
set $vartest special title
set $vart mundane title
for_window [title="$vartest"] border none
EOT
is(launch_get_border($config), 'none', 'no border');
done_testing;