+################################################################################
+# 3: Verify that escaping works correctly
+################################################################################
+
+is(parser_calls('workspace "foo"'),
+ 'cmd_workspace_name(foo, (null))',
+ 'Command with simple double quotes ok');
+
+is(parser_calls('workspace "foo'),
+ 'cmd_workspace_name(foo, (null))',
+ 'Command without ending double quotes ok');
+
+is(parser_calls('workspace "foo \"bar"'),
+ 'cmd_workspace_name(foo "bar, (null))',
+ 'Command with escaped double quotes ok');
+
+is(parser_calls('workspace "foo \\'),
+ 'cmd_workspace_name(foo \\, (null))',
+ 'Command with single backslash in the end ok');
+
+is(parser_calls('workspace "foo\\\\bar"'),
+ 'cmd_workspace_name(foo\\bar, (null))',
+ 'Command with escaped backslashes ok');
+
+is(parser_calls('workspace "foo\\\\\\"bar"'),
+ 'cmd_workspace_name(foo\\"bar, (null))',
+ 'Command with escaped double quotes after escaped backslashes ok');
+
+################################################################################
+# 4: Verify that resize commands with a "px or ppt"-construction are parsed
+# correctly
+################################################################################
+
+is(parser_calls("resize shrink width 10 px or"),
+ "ERROR: Expected one of these tokens: <number>\n" .
+ "ERROR: Your command: resize shrink width 10 px or\n" .
+ "ERROR: ",
+ "error for resize command with incomplete 'or'-construction ok");
+
+is(parser_calls("resize grow left 10 px or 20 ppt"),
+ "cmd_resize(grow, left, 10, 20)",
+ "resize command with 'or'-construction ok");
+