mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-01 06:20:38 +01:00
2b051fc1ff
Use ARABICA_NO_WCHAR_T to exclude the bits that don't build under Cygwin
34 lines
908 B
C++
34 lines
908 B
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 "../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("SAX2DOMTest_silly", SAXTest_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> >());
|
|
#endif
|
|
runner.run(argc, argv);
|
|
|
|
return 0;
|
|
} // main
|
|
|
|
// end of file
|