Mercurial > hg > svcore
comparison base/test/TestScaleTickIntervals.h @ 1428:87ae75da6527
Convert some cerrs to SVCERRs. Apart from anything else, this makes MSVC2017 happy
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 14:43:40 +0000 |
parents | 8b7d6c1e1ab7 |
children | 48e9f538e6e9 |
comparison
equal
deleted
inserted
replaced
1427:622d193a00dc | 1428:87ae75da6527 |
---|---|
30 Q_OBJECT | 30 Q_OBJECT |
31 | 31 |
32 void printDiff(vector<ScaleTickIntervals::Tick> ticks, | 32 void printDiff(vector<ScaleTickIntervals::Tick> ticks, |
33 vector<ScaleTickIntervals::Tick> expected) { | 33 vector<ScaleTickIntervals::Tick> expected) { |
34 | 34 |
35 cerr << "Have " << ticks.size() << " ticks, expected " | 35 SVCERR << "Have " << ticks.size() << " ticks, expected " |
36 << expected.size() << endl; | 36 << expected.size() << endl; |
37 for (int i = 0; i < int(ticks.size()); ++i) { | 37 for (int i = 0; i < int(ticks.size()); ++i) { |
38 cerr << i << ": have " << ticks[i].value << " \"" | 38 SVCERR << i << ": have " << ticks[i].value << " \"" |
39 << ticks[i].label << "\", expected "; | 39 << ticks[i].label << "\", expected "; |
40 if (i < int(expected.size())) { | 40 if (i < int(expected.size())) { |
41 cerr << expected[i].value << " \"" << expected[i].label | 41 SVCERR << expected[i].value << " \"" << expected[i].label |
42 << "\"" << endl; | 42 << "\"" << endl; |
43 } else { | 43 } else { |
44 cerr << "(n/a)" << endl; | 44 SVCERR << "(n/a)" << endl; |
45 } | 45 } |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 void compareTicks(ScaleTickIntervals::Ticks ticks, | 49 void compareTicks(ScaleTickIntervals::Ticks ticks, |