Commit 82691907 authored by GILLES Sebastien's avatar GILLES Sebastien

#0 Improve in tests about Ensight results the message to specify exactly the...

#0 Improve in tests about Ensight results the message to specify exactly the paths of the files being compared in the output message.
parent 58f7be4f
......@@ -37,6 +37,8 @@ namespace MoReFEM
void CheckAreEquals(const std::vector<double>& ref,
const std::vector<double>& obtained,
const std::string& ref_file,
const std::string& obtained_file,
const char* invoking_file, int invoking_line,
double epsilon);
......@@ -95,7 +97,9 @@ namespace MoReFEM
}
// An exception is thrown in this function if they aren't very similar.
CheckAreEquals(ref_values, obtained_values, invoking_file, invoking_line, epsilon);
CheckAreEquals(ref_values, obtained_values,
ref_input_data, obtained_input_data,
invoking_file, invoking_line, epsilon);
}
......@@ -132,6 +136,8 @@ namespace MoReFEM
void CheckAreEquals(const std::vector<double>& ref,
const std::vector<double>& obtained,
const std::string& ref_file,
const std::string& obtained_file,
const char* invoking_file, int invoking_line,
double epsilon)
{
......@@ -150,8 +156,9 @@ namespace MoReFEM
if (!NumericNS::AreEqual(ref_value, obtained_value, epsilon))
{
std::ostringstream oconv;
oconv << it_ref - ref.cbegin() << "-th value is not identical to what was stored as a reference "
"(values are respectively " << ref_value << " and " << obtained_value << ").";
oconv << it_ref - ref.cbegin() << "-th value in " << ref_file << " is not identical to what "
"was stored as a reference in file " << obtained_file << "(values are respectively "
<< ref_value << " and " << obtained_value << ").";
throw Exception(oconv.str(), invoking_file, invoking_line);
}
}
......
Markdown is supported
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