38 MITK_TEST_OUTPUT(<<
" ** Changing locale from " << setlocale(LC_ALL,
nullptr) <<
" to '" << locale <<
"'");
39 setlocale(LC_ALL, locale.c_str());
40 std::locale l( locale.c_str() );
78 << image->GetGeometry()->GetSpacing()[0]);
80 << image->GetGeometry()->GetSpacing()[1]);
91 std::string filename = argv[1];
98 StringList alllocales;
99 alllocales.push_back(
"de_DE");
100 alllocales.push_back(
"de_DE.utf8");
101 alllocales.push_back(
"de_DE.UTF8");
102 alllocales.push_back(
"de_DE@euro");
103 alllocales.push_back(
"German_Germany");
107 #if defined (__APPLE__) || defined(MACOSX) 108 alllocales.push_back(
"C");
111 unsigned int numberOfTestedGermanLocales(0);
113 for (StringList::iterator iter = alllocales.begin();
114 iter != alllocales.end();
119 ++numberOfTestedGermanLocales;
124 if(numberOfTestedGermanLocales == 0)
bool mitkDICOMLocaleTestChangeLocale(const std::string &locale)
static std::string GetConfigurationString()
Provide combination of preprocessor defines that was active during compilation.
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
#define MITK_TEST_OUTPUT(x)
Output some text.
std::list< Image::Pointer > ImageList
void mitkDICOMLocaleTestWithReferenceImage(std::string filename)
#define MITK_TEST_FAILED_MSG(MSG)
Fail and finish test with message MSG.
Image class for storing images.
mitk::Image::Pointer image
std::vector< std::string > StringList
MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide, mitk::ExampleDataStructure *rightHandSide, mitk::ScalarType eps, bool verbose)
Returns true if the example data structures are considered equal.
int mitkDICOMLocaleTest(int argc, char *argv[])
ImageList LoadFiles(const StringList &files)