Mercurial > hg > svcore
changeset 1717:417528c41e66
Build fix for Travis
author | Chris Cannam |
---|---|
date | Fri, 17 May 2019 12:41:06 +0100 |
parents | 021556fcd30b |
children | 35d08f4274b9 2c388d372abf a47a23c824ac |
files | data/model/test/TestSparseModels.h |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/data/model/test/TestSparseModels.h Fri May 17 12:35:06 2019 +0100 +++ b/data/model/test/TestSparseModels.h Fri May 17 12:41:06 2019 +0100 @@ -43,8 +43,8 @@ QCOMPARE(m.isEmpty(), true); QCOMPARE(m.getEventCount(), 0); QCOMPARE(m.getAllEvents().size(), size_t(0)); - QCOMPARE(m.getStartFrame(), 0); - QCOMPARE(m.getEndFrame(), 0); + QCOMPARE(m.getStartFrame(), sv_frame_t(0)); + QCOMPARE(m.getEndFrame(), sv_frame_t(0)); QCOMPARE(m.getSampleRate(), 100.0); QCOMPARE(m.getResolution(), 10); QCOMPARE(m.isSparse(), true); @@ -55,8 +55,8 @@ QCOMPARE(m.isEmpty(), true); QCOMPARE(m.getEventCount(), 0); QCOMPARE(m.getAllEvents().size(), size_t(0)); - QCOMPARE(m.getStartFrame(), 0); - QCOMPARE(m.getEndFrame(), 0); + QCOMPARE(m.getStartFrame(), sv_frame_t(0)); + QCOMPARE(m.getEndFrame(), sv_frame_t(0)); } void s1d_extents() { @@ -72,15 +72,15 @@ QCOMPARE(m.getAllEvents().size(), size_t(2)); QCOMPARE(*m.getAllEvents().begin(), p1); QCOMPARE(*m.getAllEvents().rbegin(), p2); - QCOMPARE(m.getStartFrame(), 20); - QCOMPARE(m.getEndFrame(), 60); + QCOMPARE(m.getStartFrame(), sv_frame_t(20)); + QCOMPARE(m.getEndFrame(), sv_frame_t(60)); QCOMPARE(m.containsEvent(p1), true); m.remove(p1); QCOMPARE(m.getEventCount(), 1); QCOMPARE(m.getAllEvents().size(), size_t(1)); QCOMPARE(*m.getAllEvents().begin(), p2); - QCOMPARE(m.getStartFrame(), 50); - QCOMPARE(m.getEndFrame(), 60); + QCOMPARE(m.getStartFrame(), sv_frame_t(50)); + QCOMPARE(m.getEndFrame(), sv_frame_t(60)); QCOMPARE(m.containsEvent(p1), false); } @@ -150,8 +150,8 @@ QCOMPARE(m.getAllEvents().size(), size_t(2)); QCOMPARE(*m.getAllEvents().begin(), p1); QCOMPARE(*m.getAllEvents().rbegin(), p2); - QCOMPARE(m.getStartFrame(), 20); - QCOMPARE(m.getEndFrame(), 80); + QCOMPARE(m.getStartFrame(), sv_frame_t(20)); + QCOMPARE(m.getEndFrame(), sv_frame_t(80)); QCOMPARE(m.containsEvent(p1), true); QCOMPARE(m.getValueMinimum(), 123.4f); QCOMPARE(m.getValueMaximum(), 124.3f); @@ -159,8 +159,8 @@ QCOMPARE(m.getEventCount(), 1); QCOMPARE(m.getAllEvents().size(), size_t(1)); QCOMPARE(*m.getAllEvents().begin(), p2); - QCOMPARE(m.getStartFrame(), 50); - QCOMPARE(m.getEndFrame(), 80); + QCOMPARE(m.getStartFrame(), sv_frame_t(50)); + QCOMPARE(m.getEndFrame(), sv_frame_t(80)); QCOMPARE(m.containsEvent(p1), false); }