summaryrefslogtreecommitdiff
path: root/modules/quotearg-tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-02-12 11:42:29 -0700
committerEric Blake <ebb9@byu.net>2008-02-12 19:04:29 -0700
commit05230b809c6fec84e0505ef1240f37b9d5b40356 (patch)
tree39dd1f4c83c1298abc1320275c30076f89e098e0 /modules/quotearg-tests
parent74dd1966a5db708c66201bf952976ef27bd33e7e (diff)
downloadgnulib-05230b809c6fec84e0505ef1240f37b9d5b40356.tar.gz
Quotearg part 4: add tests, fix c-maybe colon quoting.
* lib/quotearg.h: Improve documentation. * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra escapes when adding outer quotes. When quoting trigraphs, use valid C notation. When quoting NUL, omit extra characters if next character is not digit. Alter prototype. (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust callers. * modules/quotearg-tests: New module. * tests/test-quotearg.c: New test. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/quotearg-tests')
-rw-r--r--modules/quotearg-tests12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/quotearg-tests b/modules/quotearg-tests
new file mode 100644
index 0000000000..724d540e7f
--- /dev/null
+++ b/modules/quotearg-tests
@@ -0,0 +1,12 @@
+Files:
+tests/test-quotearg.c
+
+Depends-on:
+progname
+stdint
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-quotearg
+check_PROGRAMS += test-quotearg