mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Fixed unit test warnings as discussed, see https://discordapp.com/channels/539048679160676382/539925070550794240/663426372651319336
This commit is contained in:
committed by
Mat Sutcliffe
parent
8eaa4f7f15
commit
a1ea9a2e10
@@ -91,8 +91,10 @@ namespace BlackMiscTest
|
||||
QVERIFY2(a1 > h3, "200deg are more than 181deg");
|
||||
QVERIFY2(h4 == h1, "Values shall be equal");
|
||||
|
||||
h1 -= h1;
|
||||
QCOMPARE(h1.value() + 1, 1.0);
|
||||
const CHeading copy(h1);
|
||||
h1 -= copy;
|
||||
QVERIFY2(h1.isZeroEpsilonConsidered(), "Expect zero value");
|
||||
QCOMPARE(h1.value(), 0.0);
|
||||
|
||||
// h4 = h1 + h2; does not work, because misleading
|
||||
h2 += h2; // add just angle
|
||||
|
||||
Reference in New Issue
Block a user