comparison Test.cpp @ 53:86d8a699dfbe

Don't object if two consecutive runs produce the same output, if neither has timestamps anyway
author Chris Cannam
date Fri, 12 Sep 2014 21:58:45 +0100
parents 4bd0cd3c60f3
children c7fd03f5ae02
comparison
equal deleted inserted replaced
52:4bd0cd3c60f3 53:86d8a699dfbe
171 } 171 }
172 } 172 }
173 } 173 }
174 } 174 }
175 return true; 175 return true;
176 }
177
178 bool
179 Test::containsTimestamps(const Plugin::FeatureSet &b)
180 {
181 for (Plugin::FeatureSet::const_iterator i = b.begin(); i != b.end(); ++i) {
182 for (int j = 0; j < (int)i->second.size(); ++j) {
183 if (i->second[j].values.empty()) continue;
184 for (int k = 0; k < (int)i->second[j].values.size(); ++k) {
185 if (i->second[j].hasTimestamp) {
186 return true;
187 }
188 }
189 }
190 }
191 return false;
176 } 192 }
177 193
178 void 194 void
179 Test::dumpFeature(const Plugin::Feature &f, bool showValues) 195 Test::dumpFeature(const Plugin::Feature &f, bool showValues)
180 { 196 {