Mercurial > hg > svcore
comparison base/test/TestOurRealTime.h @ 1450:a12fd0456f0c streaming-csv-writer
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 17 Apr 2018 10:35:42 +0100 |
parents | 622d193a00dc |
children | 71207822a7e0 |
comparison
equal
deleted
inserted
replaced
1449:deabf9fd3d28 | 1450:a12fd0456f0c |
---|---|
68 QCOMPARE(RealTime(2, -ONE_BILLION*2), RealTime(0, 0)); | 68 QCOMPARE(RealTime(2, -ONE_BILLION*2), RealTime(0, 0)); |
69 QCOMPARE(RealTime(2, -ONE_BILLION/2), RealTime(1, ONE_BILLION/2)); | 69 QCOMPARE(RealTime(2, -ONE_BILLION/2), RealTime(1, ONE_BILLION/2)); |
70 | 70 |
71 QCOMPARE(RealTime(-2, ONE_BILLION*2), RealTime(0, 0)); | 71 QCOMPARE(RealTime(-2, ONE_BILLION*2), RealTime(0, 0)); |
72 QCOMPARE(RealTime(-2, ONE_BILLION/2), RealTime(-1, -ONE_BILLION/2)); | 72 QCOMPARE(RealTime(-2, ONE_BILLION/2), RealTime(-1, -ONE_BILLION/2)); |
73 | |
74 QCOMPARE(RealTime(1, -ONE_BILLION/2).sec, 0); | |
75 QCOMPARE(RealTime(1, -ONE_BILLION/2).nsec, ONE_BILLION/2); | |
76 QCOMPARE(RealTime(-1, ONE_BILLION/2).sec, 0); | |
77 QCOMPARE(RealTime(-1, ONE_BILLION/2).nsec, -ONE_BILLION/2); | |
73 | 78 |
74 QCOMPARE(RealTime(0, 1).sec, 0); | 79 QCOMPARE(RealTime(0, 1).sec, 0); |
75 QCOMPARE(RealTime(0, 1).nsec, 1); | 80 QCOMPARE(RealTime(0, 1).nsec, 1); |
76 QCOMPARE(RealTime(0, -1).sec, 0); | 81 QCOMPARE(RealTime(0, -1).sec, 0); |
77 QCOMPARE(RealTime(0, -1).nsec, -1); | 82 QCOMPARE(RealTime(0, -1).nsec, -1); |