From 50a6044bb4ab605004e5c82733f8f4fb7042f311 Mon Sep 17 00:00:00 2001 From: Jasper van de Gronde Date: Fri, 18 Jul 2008 19:10:58 +0000 Subject: Fix for PathString to prevent it from getting into a very, very long copying run and make it use minimumexponent. Plus some extra tests. (bzr r6355) --- src/xml/quote-test.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/xml') diff --git a/src/xml/quote-test.h b/src/xml/quote-test.h index 7f5372844..cfcb3bef2 100644 --- a/src/xml/quote-test.h +++ b/src/xml/quote-test.h @@ -1,4 +1,5 @@ #include +#include "streq.h" /* Initial author: Peter Moulder. Hereby released into the Public Domain. */ @@ -11,15 +12,6 @@ #define's and `using' directives of the included file. */ #include "quote.cpp" -struct streq_free2 { - bool operator()(char const *exp, char *got) const - { - bool const ret = (strcmp(exp, got) == 0); - g_free(got); - return ret; - } -}; - class XmlQuoteTest : public CxxTest::TestSuite { public: @@ -71,7 +63,9 @@ public: {"a\"bd;!@#$%^*(\\)?", "a"b<c>d;!@#$%^*(\\)?"} }; for(size_t i=0; i