mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-07 05:24:22 +01:00
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
#ifdef _MSC_VER
|
|
#pragma warning(disable: 4786 4250 4503)
|
|
#endif
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <DOM/SAX2DOM/SAX2DOM.h>
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
#include "../CppUnit/TestRunner.hpp"
|
|
#include "../CppUnit/framework/Test.h"
|
|
#include "../CppUnit/framework/TestSuite.h"
|
|
|
|
#include "test_SAX.h"
|
|
#include "test_TreeWalker.hpp"
|
|
#include "../silly_string/silly_string.hpp"
|
|
|
|
////////////////////////////////////////////////
|
|
int main(int argc, const char* argv[])
|
|
{
|
|
TestRunner runner;
|
|
|
|
runner.addTest("SAX2DOMTest", SAXTest_suite<std::string, Arabica::default_string_adaptor<std::string> >());
|
|
runner.addTest("TreeWalkerTest", TreeWalkerTest_suite<std::string, Arabica::default_string_adaptor<std::string> >());
|
|
runner.addTest("SAX2DOMTest_silly", SAXTest_suite<silly_string, silly_string_adaptor>());
|
|
runner.addTest("TreeWalkerTest_silly", TreeWalkerTest_suite<silly_string, silly_string_adaptor>());
|
|
#ifndef ARABICA_NO_WCHAR_T
|
|
runner.addTest("SAX2DOMTest_wide", SAXTest_suite<std::wstring, Arabica::default_string_adaptor<std::wstring> >());
|
|
runner.addTest("TreeWalkerTest_wide", TreeWalkerTest_suite<std::wstring, Arabica::default_string_adaptor<std::wstring> >());
|
|
#else
|
|
std::cout << "No wchar_t tests on this platform :)" << std::endl;
|
|
#endif
|
|
runner.run(argc, argv);
|
|
|
|
return 0;
|
|
} // main
|
|
|
|
// end of file
|