diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:29:28 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:29:28 +0200 |
commit | 75c07011b7c4d06acd7b45dabdcd60ab9d80f385 (patch) | |
tree | 8853c3978dd152ef377e652239448b1352320206 /zenxml/unit_test.cpp | |
parent | 5.22 (diff) | |
download | FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.gz FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.bz2 FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.zip |
5.23
Diffstat (limited to 'zenxml/unit_test.cpp')
-rw-r--r-- | zenxml/unit_test.cpp | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/zenxml/unit_test.cpp b/zenxml/unit_test.cpp deleted file mode 100644 index 8f49de6f..00000000 --- a/zenxml/unit_test.cpp +++ /dev/null @@ -1,95 +0,0 @@ -// ************************************************************************** -// * This file is part of the zen::Xml project. It is distributed under the * -// * Boost Software License: http://www.boost.org/LICENSE_1_0.txt * -// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved * -// ************************************************************************** - -#include <set> -#include <map> -#include <deque> -#include <vector> -#include <list> -#include <utility> -#include "xml.h" - -using namespace zen; - -namespace -{ -void unit_test() -{ - class Dummy {}; - - //compile time checks only - - assert_static(!IsStlContainer<wchar_t> ::value); - assert_static(!IsStlContainer<char> ::value); - assert_static(!IsStlContainer<Dummy> ::value); - assert_static(!IsStlContainer<NullType> ::value); - assert_static(IsStlContainer<std::set <int>> ::value); - assert_static(IsStlContainer<std::deque <float>> ::value); - assert_static(IsStlContainer<std::list <size_t>> ::value); - assert_static((IsStlContainer<std::map <double, char>> ::value)); - assert_static((IsStlContainer<std::multimap<short, double>>::value)); - assert_static(IsStlContainer <std::vector <wchar_t>> ::value); - assert_static((IsStlPair <std::pair<int, double>> ::value)); - assert_static(!IsStlPair<Dummy> ::value); - - assert_static(!IsStringLike<Dummy>::value); - assert_static(!IsStringLike<int>::value); - assert_static(!IsStringLike<double>::value); - assert_static(!IsStringLike<short>::value); - assert_static(IsStringLike<char>::value); - assert_static(IsStringLike<const wchar_t>::value); - assert_static(IsStringLike<const char>::value); - assert_static(IsStringLike<wchar_t>::value); - assert_static(IsStringLike<char*>::value); - assert_static(IsStringLike<wchar_t*>::value); - assert_static(IsStringLike<char* const>::value); - assert_static(IsStringLike<wchar_t* const>::value); - assert_static(IsStringLike<const char*>::value); - assert_static(IsStringLike<const char* const>::value); - assert_static(IsStringLike<const wchar_t*>::value); - assert_static(IsStringLike<const wchar_t* const>::value); - assert_static(IsStringLike<const char[4]>::value); - assert_static(IsStringLike<const wchar_t[4]>::value); - assert_static(IsStringLike<char[4]>::value); - assert_static(IsStringLike<wchar_t[4]>::value); - assert_static(IsStringLike<std::string>::value); - assert_static(IsStringLike<std::wstring>::value); - assert_static(IsStringLike<const std::string>::value); - assert_static(IsStringLike<const std::wstring>::value); - assert_static(IsStringLike<const std::string&>::value); - assert_static(IsStringLike<const std::wstring&>::value); - assert_static(IsStringLike<std::string&>::value); - assert_static(IsStringLike<std::wstring&>::value); - - assert_static(!(IsSameType<GetCharType<int>::Type, char>::value)); - assert_static(!(IsSameType<GetCharType<double>::Type, char>::value)); - assert_static(!(IsSameType<GetCharType<short>::Type, char>::value)); - assert_static((IsSameType<GetCharType<char>::Type, char>::value)); - assert_static((IsSameType<GetCharType<wchar_t>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<const char>::Type, char>::value)); - assert_static((IsSameType<GetCharType<const wchar_t>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<char*>::Type, char>::value)); - assert_static((IsSameType<GetCharType<wchar_t*>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<char* const>::Type, char>::value)); - assert_static((IsSameType<GetCharType<wchar_t* const>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<const char*>::Type, char>::value)); - assert_static((IsSameType<GetCharType<const char* const>::Type, char>::value)); - assert_static((IsSameType<GetCharType<const wchar_t*>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<const wchar_t* const>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<const char[4]>::Type, char>::value)); - assert_static((IsSameType<GetCharType<const wchar_t[4]>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<char[4]>::Type, char>::value)); - assert_static((IsSameType<GetCharType<wchar_t[4]>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<std::string>::Type, char>::value)); - assert_static((IsSameType<GetCharType<std::wstring>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<const std::string>::Type, char>::value)); - assert_static((IsSameType<GetCharType<const std::wstring>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<const std::string&>::Type, char>::value)); - assert_static((IsSameType<GetCharType<const std::wstring&>::Type, wchar_t>::value)); - assert_static((IsSameType<GetCharType<std::string&>::Type, char>::value)); - assert_static((IsSameType<GetCharType<std::wstring&>::Type, wchar_t>::value)); -} -} |