comparison data/model/test/TestSparseModels.h @ 1741:9d82b164f264 by-id

Work on commands, and some other model updates
author Chris Cannam
date Thu, 27 Jun 2019 13:08:10 +0100
parents 417528c41e66
children
comparison
equal deleted inserted replaced
1740:fe3f7f8df3a3 1741:9d82b164f264
16 #define TEST_SPARSE_MODELS_H 16 #define TEST_SPARSE_MODELS_H
17 17
18 #include "../SparseOneDimensionalModel.h" 18 #include "../SparseOneDimensionalModel.h"
19 #include "../NoteModel.h" 19 #include "../NoteModel.h"
20 #include "../TextModel.h" 20 #include "../TextModel.h"
21 #include "../PathModel.h" 21 #include "../Path.h"
22 #include "../ImageModel.h" 22 #include "../ImageModel.h"
23 23
24 #include <QObject> 24 #include <QObject>
25 #include <QtTest> 25 #include <QtTest>
26 26
250 } 250 }
251 QCOMPARE(xml, expected); 251 QCOMPARE(xml, expected);
252 } 252 }
253 253
254 void path_xml() { 254 void path_xml() {
255 PathModel m(100, 10, false); 255 Path m(100, 10);
256 PathPoint p1(20, 30); 256 PathPoint p1(20, 30);
257 PathPoint p2(40, 60); 257 PathPoint p2(40, 60);
258 PathPoint p3(50, 49); 258 PathPoint p3(50, 49);
259 m.add(p1); 259 m.add(p1);
260 m.add(p2); 260 m.add(p2);