Commit 3975b450 authored by Julien Osman's avatar Julien Osman
Browse files

FIX: Write the correct message when an error is detected

When CompareMetadataDict finds a difference in the metadata map, it
displays a message with the baseline and the test values. The 2
values were flipped.
parent 51b78f73
......@@ -1478,10 +1478,10 @@ int CompareMetadataDict( const MapType & baselineMap,
<< " does not match between test and baseline images: "
<< std::endl
<< "Baseline image: "
<< first1->second
<< first2->second
<< std::endl
<< "Test image: "
<< first2->second
<< first1->second
<< std::endl;
}
}
......@@ -1527,7 +1527,7 @@ int TestHelper::RegressionTestMetaData(const char* testImageFilename, const char
itkGenericExceptionMacro(<< "Exception detected while reading " << baselineImageFilename << " : " << e.GetDescription());
}
// Read the baseline file
// Read the test file
ReaderType::Pointer testReader = ReaderType::New();
testReader->SetFileName(testImageFilename);
try
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment