Skip to content

Commit 5b8c381

Browse files
committed
Add diff output from verification tests.
1 parent 5fd5a77 commit 5b8c381

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Libs/Particles/ParticleSystem.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ bool ParticleSystem::EvaluationCompare(const ParticleSystem& other) const
9494
std::cout << "Comparing generalization: " << gen1[0] << " vs " << gen2[0] << ": ";
9595
double diff = std::abs(gen1[0] - gen2[0]);
9696
if ((diff > 0.1 * gen1[0] || diff > 0.1 * gen2[0]) && !epsEqual(gen1[0], gen2[0], 0.1)) {
97-
std::cout << "different\n";
97+
std::cout << "different (" << diff << ")\n";
9898
good = false;
9999
} else {
100100
std::cout << "ok\n";
@@ -109,8 +109,8 @@ bool ParticleSystem::EvaluationCompare(const ParticleSystem& other) const
109109
if (spec1.size() > 0 && spec2.size() > 0) {
110110
std::cout << "Comparing specificity: " << spec1[0] << " vs " << spec2[0] << ": ";
111111
double diff = std::abs(spec1[0] - spec2[0]);
112-
if (diff > 0.20 * spec1[0] || diff > 0.20 * spec2[0]) {
113-
std::cout << "different\n";
112+
if (diff > 0.25 * spec1[0] || diff > 0.25 * spec2[0]) {
113+
std::cout << "different (" << diff << ")\n";
114114
good = false;
115115
} else {
116116
std::cout << "ok\n";

0 commit comments

Comments
 (0)