search for: test_empty_unescap

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

Did you mean: test_empty_unescape
2014 Oct 31
0
[PATCH 2/3] fish: basic tests for readline escaping
...ernal-frontend.h> +#include <rl.h> + +int +eq_bracket (char *(*fn)(char*), char * in, char * out) +{ + char * q = fn(in); + return (q != NULL) && STREQ(q, out); +} + +int +test_empty_escape (void) +{ + return eq_bracket(bs_escape_filename, "", ""); +} + +int +test_empty_unescape (void) +{ + return eq_bracket(bs_unescape_filename, "", ""); +} + +int +test_singlespace_escape (void) +{ + return eq_bracket(bs_escape_filename, " ", "\\ "); +} + +int +test_singlespace_unescape (void) +{ + return eq_bracket(bs_unescape_filename, "\...
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: