mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: correct testqPref*.cpp to use static qPref* functions.
qPref* set/get functions are static. remove creation of qPref* instances, reference static functions. Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
54f8217eec
commit
6e846eb4c0
13 changed files with 38 additions and 61 deletions
|
@ -93,13 +93,11 @@ void TestQPrefGeocoding::test_multiple()
|
|||
// test multiple instances have the same information
|
||||
|
||||
prefs.geocoding.category[0] = TC_NONE;
|
||||
auto tst_direct = new qPrefGeocoding;
|
||||
|
||||
prefs.geocoding.category[1] = TC_OCEAN;
|
||||
auto tst = qPrefGeocoding::instance();
|
||||
|
||||
QCOMPARE(tst->first_taxonomy_category(), tst_direct->first_taxonomy_category());
|
||||
QCOMPARE(tst->second_taxonomy_category(), tst_direct->second_taxonomy_category());
|
||||
QCOMPARE(tst->first_taxonomy_category(), qPrefGeocoding::first_taxonomy_category());
|
||||
QCOMPARE(tst->second_taxonomy_category(), qPrefGeocoding::second_taxonomy_category());
|
||||
QCOMPARE(tst->first_taxonomy_category(), TC_NONE);
|
||||
QCOMPARE(tst->second_taxonomy_category(), TC_OCEAN);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue