From: Adam Dickmeiss Date: Fri, 16 Nov 2007 08:01:47 +0000 (+0000) Subject: Update test for new wrbuf_puts_escaped functions X-Git-Tag: YAZ.3.0.18~19 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=a6661f2e025fd649e040da66c5ca4bc7f03aa2ff Update test for new wrbuf_puts_escaped functions --- diff --git a/test/tsticonv.c b/test/tsticonv.c index f1883b9..843df37 100644 --- a/test/tsticonv.c +++ b/test/tsticonv.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: tsticonv.c,v 1.32 2007-10-15 20:45:05 adam Exp $ + * $Id: tsticonv.c,v 1.33 2007-11-16 08:01:47 adam Exp $ */ #if HAVE_CONFIG_H @@ -125,15 +125,15 @@ static int tst_convert(yaz_iconv_t cd, const char *buf, const char *cmpbuf) WRBUF w = wrbuf_alloc(); wrbuf_rewind(w); - wrbuf_verbose_str(w, buf, strlen(buf)); + wrbuf_puts_escaped(w, buf); yaz_log(YLOG_LOG, "input %s", wrbuf_cstr(w)); wrbuf_rewind(w); - wrbuf_verbose_str(w, wrbuf_buf(b), wrbuf_len(b)); + wrbuf_write_escaped(w, wrbuf_buf(b), wrbuf_len(b)); yaz_log(YLOG_LOG, "got %s", wrbuf_cstr(w)); wrbuf_rewind(w); - wrbuf_verbose_str(w, cmpbuf, strlen(cmpbuf)); + wrbuf_puts_escaped(w, cmpbuf); yaz_log(YLOG_LOG, "exp %s", wrbuf_cstr(w)); wrbuf_destroy(w);