43 MITK_TEST_OUTPUT(<<
" ** Changing locale from " << setlocale(LC_ALL, NULL) <<
" to '" << locale <<
"'");
44 setlocale(LC_ALL, locale.c_str());
45 std::locale l( locale.c_str() );
61 factory->SetFileName( filename );
66 image =
dynamic_cast<mitk::Image*
>(node->GetData());
77 << image->GetGeometry()->GetSpacing()[0]);
79 << image->GetGeometry()->GetSpacing()[1]);
97 StringList alllocales;
98 alllocales.push_back(
"de_DE");
99 alllocales.push_back(
"de_DE.utf8");
100 alllocales.push_back(
"de_DE.UTF8");
101 alllocales.push_back(
"de_DE@euro");
102 alllocales.push_back(
"German_Germany");
106 #if defined (__APPLE__) || defined(MACOSX)
107 alllocales.push_back(
"C");
110 unsigned int numberOfTestedGermanLocales(0);
112 for (StringList::iterator iter = alllocales.begin();
113 iter != alllocales.end();
118 ++numberOfTestedGermanLocales;
123 if(numberOfTestedGermanLocales == 0)
static std::string GetConfigurationString()
Provide combination of preprocessor defines that was active during compilation.
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
bool mitkDICOMLocaleTestChangeLocale(const std::string &locale)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
int mitkDICOMLocaleTest(int argc, char *argv[])
#define MITK_TEST_OUTPUT(x)
Output some text.
static const std::string filename
#define MITK_TEST_FAILED_MSG(MSG)
Fail and finish test with message MSG.
Image class for storing images.
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.
void mitkDICOMLocaleTestWithReferenceImage(std::string filename)