Mercurial > hg > svcore
comparison data/model/test/TestSparseModels.h @ 1766:85b9b466a59f
Merge from branch by-id
author | Chris Cannam |
---|---|
date | Wed, 17 Jul 2019 14:24:51 +0100 |
parents | 9d82b164f264 |
children |
comparison
equal
deleted
inserted
replaced
1730:649ac57c5a2d | 1766:85b9b466a59f |
---|---|
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); |