Skip to content

Commit

Permalink
Modify tests to use currently existing new-format sky cultures
Browse files Browse the repository at this point in the history
  • Loading branch information
10110111 committed Jan 25, 2024
1 parent 146177d commit 4d8c7c9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/tests/testStelSkyCultureMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ void TestStelSkyCultureMgr::testStelSkyCultureMgr()
StelSkyCultureMgr scMgr;

QVERIFY(scMgr.getDefaultSkyCultureID().isEmpty()); // Should be true, because sky culture is not set! (StelSkyCultureMgr::init() isn't called)
QVERIFY(scMgr.setCurrentSkyCultureID("arabic_al-sufi"));
QVERIFY(scMgr.getCurrentSkyCultureID()=="arabic_al-sufi");
QVERIFY(scMgr.setCurrentSkyCultureID("modern"));
QVERIFY(scMgr.getCurrentSkyCultureID()=="modern");
QVERIFY(scMgr.getCurrentSkyCultureEnglishName()=="Modern");
QVERIFY(scMgr.getCurrentSkyCultureBoundariesType()==StelSkyCulture::BoundariesType::IAU);
QVERIFY(scMgr.setCurrentSkyCultureID("western"));
QVERIFY(scMgr.getCurrentSkyCultureID()=="western");
QVERIFY(scMgr.setCurrentSkyCultureID("blackfoot"));
QVERIFY(scMgr.getCurrentSkyCultureID()=="blackfoot");
QVERIFY(scMgr.getCurrentSkyCultureEnglishName()=="blackfoot");
QVERIFY(scMgr.getCurrentSkyCultureBoundariesType()==StelSkyCulture::BoundariesType::None);
QVERIFY(scMgr.getCurrentSkyCultureClassificationIdx()==StelSkyCulture::TRADITIONAL);
QVERIFY(scMgr.getSkyCultureListEnglish().contains("modern", Qt::CaseInsensitive));
QVERIFY(scMgr.getDirToNameMap().contains("modern"));
QVERIFY(scMgr.getSkyCultureListEnglish().contains("western", Qt::CaseInsensitive));
QVERIFY(scMgr.getDirToNameMap().contains("western"));
QVERIFY(!scMgr.setDefaultSkyCultureID(""));
QVERIFY(scMgr.getSkyCultureListIDs().contains("modern", Qt::CaseInsensitive));
QVERIFY(scMgr.getSkyCultureListIDs().contains("western", Qt::CaseInsensitive));
}

0 comments on commit 4d8c7c9

Please sign in to comment.