search for: test_singleword_unescap

Displaying 2 results from an estimated 2 matches for "test_singleword_unescap".

2014 Oct 31
0
[PATCH 2/3] fish: basic tests for readline escaping
...quot; ", "\\ "); +} + +int +test_singlespace_unescape (void) +{ + return eq_bracket(bs_unescape_filename, "\\ ", " "); +} + +int +test_singleword_escape (void) +{ + return eq_bracket(bs_escape_filename, "singleword", "singleword"); +} + +int +test_singleword_unescape (void) +{ + return eq_bracket(bs_unescape_filename, "singleword", "singleword"); +} + +int +test_multiword_escape (void) +{ + return eq_bracket(bs_escape_filename, "more than one word\n", "more\\ than\\ one\\ word\\n"); +} + +int +test_nonprinting_escape (...
2014 Oct 31
6
[PATCH 0/3] WIP readline escaping functions
From: Maros Zatko <hacxman@gmail.com> Auxiliary functions for readline to support space character escaping in filenames in future. Escaping function is taken from fish.c (used to be parse_quoted_string) plus its un-escaping counterpart. There are a few tests for both. Maros Zatko (3): fish: rl.{c,h} - escaping functions for readline fish: basic tests for readline escaping autotools: