summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-02 14:35:43 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-11 17:22:58 -0700
commit4d57b52062ab902dee8d82e453eda586ce78ab3e (patch)
tree869aac1f2419d29e6cf51369c9745792ed9408c4 /tests
parentd5bbfac6a33c30020255a10c82305276d95d5ab6 (diff)
downloadsubsurface-4d57b52062ab902dee8d82e453eda586ce78ab3e.tar.gz
core/tests: change short to int in pref.h
Simplify structure preferences by removing short. Update test cases to not do (int). Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testqPrefTechnicalDetails.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/testqPrefTechnicalDetails.cpp b/tests/testqPrefTechnicalDetails.cpp
index 5f3fb4477..328541102 100644
--- a/tests/testqPrefTechnicalDetails.cpp
+++ b/tests/testqPrefTechnicalDetails.cpp
@@ -55,8 +55,8 @@ void TestQPrefTechnicalDetails::test_struct_get()
QCOMPARE(tst->display_deco_mode(), prefs.display_deco_mode);
QCOMPARE(tst->display_unused_tanks(), prefs.display_unused_tanks);
QCOMPARE(tst->ead(), prefs.ead);
- QCOMPARE(tst->gfhigh(), (int)prefs.gfhigh);
- QCOMPARE(tst->gflow(), (int)prefs.gflow);
+ QCOMPARE(tst->gfhigh(), prefs.gfhigh);
+ QCOMPARE(tst->gflow(), prefs.gflow);
QCOMPARE(tst->gf_low_at_maxdepth(), prefs.gf_low_at_maxdepth);
QCOMPARE(tst->hrgraph(), prefs.hrgraph);
QCOMPARE(tst->mod(), prefs.mod);
@@ -72,7 +72,7 @@ void TestQPrefTechnicalDetails::test_struct_get()
QCOMPARE(tst->show_sac(), prefs.show_sac);
QCOMPARE(tst->show_scr_ocpo2(), prefs.show_scr_ocpo2);
QCOMPARE(tst->tankbar(), prefs.tankbar);
- QCOMPARE(tst->vpmb_conservatism(), (int)prefs.vpmb_conservatism);
+ QCOMPARE(tst->vpmb_conservatism(), prefs.vpmb_conservatism);
QCOMPARE(tst->zoomed_plot(), prefs.zoomed_plot);
}
@@ -117,8 +117,8 @@ void TestQPrefTechnicalDetails::test_set_struct()
QCOMPARE(prefs.display_deco_mode, RECREATIONAL);
QCOMPARE(prefs.display_unused_tanks, false);
QCOMPARE(prefs.ead, false);
- QCOMPARE((int)prefs.gfhigh, 29);
- QCOMPARE((int)prefs.gflow, 24);
+ QCOMPARE(prefs.gfhigh, 29);
+ QCOMPARE(prefs.gflow, 24);
QCOMPARE(prefs.gf_low_at_maxdepth, false);
QCOMPARE(prefs.hrgraph, false);
QCOMPARE(prefs.mod, false);
@@ -134,7 +134,7 @@ void TestQPrefTechnicalDetails::test_set_struct()
QCOMPARE(prefs.show_sac, false);
QCOMPARE(prefs.show_scr_ocpo2, false);
QCOMPARE(prefs.tankbar, false);
- QCOMPARE((int)prefs.vpmb_conservatism, 64);
+ QCOMPARE(prefs.vpmb_conservatism, 64);
QCOMPARE(prefs.zoomed_plot, false);
}
@@ -225,7 +225,7 @@ void TestQPrefTechnicalDetails::test_set_load_struct()
QCOMPARE(prefs.show_sac, true);
QCOMPARE(prefs.show_scr_ocpo2, true);
QCOMPARE(prefs.tankbar, true);
- QCOMPARE((int)prefs.vpmb_conservatism, 64);
+ QCOMPARE(prefs.vpmb_conservatism, 64);
QCOMPARE(prefs.zoomed_plot, true);
}
@@ -300,8 +300,8 @@ void TestQPrefTechnicalDetails::test_struct_disk()
QCOMPARE(prefs.display_deco_mode, BUEHLMANN);
QCOMPARE(prefs.display_unused_tanks, true);
QCOMPARE(prefs.ead, true);
- QCOMPARE((int)prefs.gfhigh, 11);
- QCOMPARE((int)prefs.gflow, 12);
+ QCOMPARE(prefs.gfhigh, 11);
+ QCOMPARE(prefs.gflow, 12);
QCOMPARE(prefs.gf_low_at_maxdepth, true);
QCOMPARE(prefs.hrgraph, true);
QCOMPARE(prefs.mod, true);
@@ -317,7 +317,7 @@ void TestQPrefTechnicalDetails::test_struct_disk()
QCOMPARE(prefs.show_sac, true);
QCOMPARE(prefs.show_scr_ocpo2, true);
QCOMPARE(prefs.tankbar, true);
- QCOMPARE((int)prefs.vpmb_conservatism, 15);
+ QCOMPARE(prefs.vpmb_conservatism, 15);
QCOMPARE(prefs.zoomed_plot, true);
}