summaryrefslogtreecommitdiff
path: root/src/xml_encode_decode.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml_encode_decode.cc')
-rw-r--r--src/xml_encode_decode.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/xml_encode_decode.cc b/src/xml_encode_decode.cc
index b1777d9..4d56a5f 100644
--- a/src/xml_encode_decode.cc
+++ b/src/xml_encode_decode.cc
@@ -85,24 +85,3 @@ std::string xml_decode(std::string str)
return str;
}
-
-#ifdef TEST_XML_ENCODE_DECODE
-//deps:
-//cflags:
-//libs:
-#include <test.h>
-
-TEST_BEGIN;
-
-std::string in = "&A<B>C\"D\'<>\"&amp;E<>";
-std::string enc = xml_encode(in);
-std::string denc = xml_encode(enc);
-std::string dec = xml_decode(denc);
-std::string ddec = xml_decode(dec);
-
-TEST_EQUAL_STR(in, ddec, "compare");
-TEST_EQUAL_STR(enc, dec, "compare");
-
-TEST_END;
-
-#endif/*TEST_XML_ENCODE_DECODE*/