Skip to content

Commit

Permalink
Add test for span angle.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 23, 2024
1 parent f2aeaeb commit 10f6bef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/UtilitiesTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ void UtilitiesTest::testAnglesFullProgress()
QCOMPARE(firstAngle, 5760);
QCOMPARE(secondAngle, 8640);
}

void UtilitiesTest::testGetSpanAngle()
{
const int spanAngle{utilities::getSpanAngle()};
QCOMPARE(spanAngle, -720);
}
2 changes: 2 additions & 0 deletions tests/UtilitiesTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ private Q_SLOTS:
static void testAnglesHalfProgress();

static void testAnglesFullProgress();

static void testGetSpanAngle();
};

0 comments on commit 10f6bef

Please sign in to comment.