summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-21 19:30:03 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-09-21 19:30:03 +0000
commit70d88da72709b7de129b893ad4edcc82cf5872ab (patch)
tree7d56f9b39f08b6295447cc7fd82717bb274691d1 /tests
parent41d1d91bc56efec947c12f253de730bb8ace685f (diff)
Major header cleanup: removed redundant comments (single-line function/type descriptions are left for convenience), removed parse()/as_utf16(), removed deprecated function tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@746 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/test_deprecated.cpp68
1 files changed, 0 insertions, 68 deletions
diff --git a/tests/test_deprecated.cpp b/tests/test_deprecated.cpp
deleted file mode 100644
index 5c4f566..0000000
--- a/tests/test_deprecated.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-// This file includes all tests for deprecated functionality; this is going away in the next release!
-
-#ifdef _MSC_VER
-# pragma warning(disable: 4996)
-#endif
-
-#ifdef __GNUC__
-# if __GNUC__ >= 4 && __GNUC_MINOR__ >= 2
-# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-# else
-# define PUGIXML_DEPRECATED
-# endif
-#endif
-
-#ifdef __INTEL_COMPILER
-# pragma warning(disable: 1478)
-#endif
-
-#include <string.h>
-
-#include "common.hpp"
-
-#include "writer_string.hpp"
-
-#include <vector>
-#include <iterator>
-
-// parse - it's now load_buffer_inplace
-TEST(document_parse)
-{
- char text[] = "<node/>";
-
- pugi::xml_document doc;
-
- CHECK(doc.parse(text));
- CHECK_NODE(doc, STR("<node />"));
-}
-
-// parse with transfer_ownership_tag attribute - it's now load_buffer_inplace_own
-TEST(document_parse_transfer_ownership)
-{
- allocation_function alloc = get_memory_allocation_function();
-
- char* text = static_cast<char*>(alloc(strlen("<node/>") + 1));
- CHECK(text);
-
- memcpy(text, "<node/>", strlen("<node/>") + 1);
-
- pugi::xml_document doc;
-
- CHECK(doc.parse(transfer_ownership_tag(), text));
- CHECK_NODE(doc, STR("<node />"));
-}
-
-#ifndef PUGIXML_NO_STL
-// as_utf16 - it's now as_wide
-TEST(as_utf16)
-{
- CHECK(as_utf16("") == L"");
-
- // valid 1-byte, 2-byte and 3-byte inputs
-#ifdef U_LITERALS
- CHECK(as_utf16("?\xd0\x80\xe2\x80\xbd") == L"?\u0400\u203D");
-#else
- CHECK(as_utf16("?\xd0\x80\xe2\x80\xbd") == L"?\x0400\x203D");
-#endif
-}
-#endif