search for: test_nonprinting_unescap

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

2014 Oct 31
0
[PATCH 2/3] fish: basic tests for readline escaping
...+test_nonprinting_escape (void) +{ + return eq_bracket(bs_escape_filename, "\xac\xec\x8", "\\xac\\xec\\b"); +} + +int +test_multiword_unescape (void) +{ + return eq_bracket(bs_unescape_filename, "more\\ than\\ one\\ word", "more than one word"); +} + +int +test_nonprinting_unescape (void) +{ + return eq_bracket(bs_unescape_filename, "\\xac\\xec\\b", "\xac\xec\b"); +} + + + +struct test_t { + char *name; + int (*fn)(void); + int expect; +}; + +struct test_t tests[] = { + { .name = "test empty escape", .fn = test_empty_escape, .expect = 1}, +...
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: