Mercurial > hg > svcore
comparison data/model/test/TestSparseModels.h @ 1697:c077a97d055f single-point
Windows build fixes
author | Chris Cannam |
---|---|
date | Wed, 01 May 2019 21:39:37 +0100 |
parents | d7b04b0ed056 |
children | 417528c41e66 |
comparison
equal
deleted
inserted
replaced
1696:187c76c40c6f | 1697:c077a97d055f |
---|---|
130 " <point frame='50' label='' />\n" | 130 " <point frame='50' label='' />\n" |
131 "</dataset>\n"; | 131 "</dataset>\n"; |
132 expected.replace("\'", "\""); | 132 expected.replace("\'", "\""); |
133 if (xml != expected) { | 133 if (xml != expected) { |
134 cerr << "Obtained xml:\n" << xml | 134 cerr << "Obtained xml:\n" << xml |
135 << "\nExpected:\n" << expected << endl; | 135 << "\nExpected:\n" << expected << std::endl; |
136 } | 136 } |
137 QCOMPARE(xml, expected); | 137 QCOMPARE(xml, expected); |
138 } | 138 } |
139 | 139 |
140 void note_extents() { | 140 void note_extents() { |
216 " <point frame='50' value='126.3' duration='30' level='0.9' label='note 3' />\n" | 216 " <point frame='50' value='126.3' duration='30' level='0.9' label='note 3' />\n" |
217 "</dataset>\n"; | 217 "</dataset>\n"; |
218 expected.replace("\'", "\""); | 218 expected.replace("\'", "\""); |
219 if (xml != expected) { | 219 if (xml != expected) { |
220 cerr << "Obtained xml:\n" << xml | 220 cerr << "Obtained xml:\n" << xml |
221 << "\nExpected:\n" << expected << endl; | 221 << "\nExpected:\n" << expected << std::endl; |
222 } | 222 } |
223 QCOMPARE(xml, expected); | 223 QCOMPARE(xml, expected); |
224 } | 224 } |
225 | 225 |
226 void text_xml() { | 226 void text_xml() { |
244 " <point frame='50' height='0.3' label='text 3' />\n" | 244 " <point frame='50' height='0.3' label='text 3' />\n" |
245 "</dataset>\n"; | 245 "</dataset>\n"; |
246 expected.replace("\'", "\""); | 246 expected.replace("\'", "\""); |
247 if (xml != expected) { | 247 if (xml != expected) { |
248 cerr << "Obtained xml:\n" << xml | 248 cerr << "Obtained xml:\n" << xml |
249 << "\nExpected:\n" << expected << endl; | 249 << "\nExpected:\n" << expected << std::endl; |
250 } | 250 } |
251 QCOMPARE(xml, expected); | 251 QCOMPARE(xml, expected); |
252 } | 252 } |
253 | 253 |
254 void path_xml() { | 254 void path_xml() { |
272 " <point frame='50' mapframe='49' />\n" | 272 " <point frame='50' mapframe='49' />\n" |
273 "</dataset>\n"; | 273 "</dataset>\n"; |
274 expected.replace("\'", "\""); | 274 expected.replace("\'", "\""); |
275 if (xml != expected) { | 275 if (xml != expected) { |
276 cerr << "Obtained xml:\n" << xml | 276 cerr << "Obtained xml:\n" << xml |
277 << "\nExpected:\n" << expected << endl; | 277 << "\nExpected:\n" << expected << std::endl; |
278 } | 278 } |
279 QCOMPARE(xml, expected); | 279 QCOMPARE(xml, expected); |
280 } | 280 } |
281 | 281 |
282 void image_xml() { | 282 void image_xml() { |
294 " <point frame='20' label='a label' image='/path/to/thing.png' />\n" | 294 " <point frame='20' label='a label' image='/path/to/thing.png' />\n" |
295 "</dataset>\n"; | 295 "</dataset>\n"; |
296 expected.replace("\'", "\""); | 296 expected.replace("\'", "\""); |
297 if (xml != expected) { | 297 if (xml != expected) { |
298 cerr << "Obtained xml:\n" << xml | 298 cerr << "Obtained xml:\n" << xml |
299 << "\nExpected:\n" << expected << endl; | 299 << "\nExpected:\n" << expected << std::endl; |
300 } | 300 } |
301 QCOMPARE(xml, expected); | 301 QCOMPARE(xml, expected); |
302 } | 302 } |
303 }; | 303 }; |
304 | 304 |