Bugfix: Properly handle workspace names with double quotes (+test) (Thanks kvapen)

This commit is contained in:
Michael Stapelberg
2012-01-30 16:55:06 +00:00
parent ed2bcc15e3
commit 2f8d3d3390
3 changed files with 53 additions and 4 deletions

View File

@ -157,4 +157,16 @@ is(parser_calls('move something to somewhere'),
" ^^^^^^^^^^^^^^^^^^^^^^",
'error for unknown literal ok');
################################################################################
# 3: Verify that escaping of double quotes works correctly
################################################################################
is(parser_calls('workspace "foo"'),
'cmd_workspace_name(foo)',
'Command with simple double quotes ok');
is(parser_calls('workspace "foo \"bar"'),
'cmd_workspace_name(foo "bar)',
'Command with escaped double quotes ok');
done_testing;