summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Lakshman <acrlakshman@gmail.com>2014-04-15 11:39:51 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-15 09:57:28 -0700
commit2e80d79396936d379aa71d65db597b7edc84e4da (patch)
treee33f6d5b3771468af79bbea639244b9ae7f20f4c /tests
parentf7a327077ba9b93e6f2d696e9bf882f86da750a0 (diff)
downloadsubsurface-2e80d79396936d379aa71d65db597b7edc84e4da.tar.gz
Corrections to unit tests
Make the initial unit tests actually pass Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testunitconversion.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testunitconversion.cpp b/tests/testunitconversion.cpp
index 54b7e1b7b..4b55b9f51 100644
--- a/tests/testunitconversion.cpp
+++ b/tests/testunitconversion.cpp
@@ -3,12 +3,12 @@
void TestUnitConversion::testUnitConversions()
{
- QCOMPARE(IS_FP_SAME(grams_to_lbs(1000), 2.20459), true);
+ QCOMPARE(IS_FP_SAME(grams_to_lbs(1000), 2.204586), true);
QCOMPARE(lbs_to_grams(1), 454);
QCOMPARE(IS_FP_SAME(ml_to_cuft(1000), 0.0353147), true);
- QCOMPARE(IS_FP_SAME(cuft_to_l(1), 28.3168), true);
- QCOMPARE(IS_FP_SAME(mm_to_feet(1000), 3.28084), true);
+ QCOMPARE(IS_FP_SAME(cuft_to_l(1), 28.316847), true);
+ QCOMPARE(IS_FP_SAME(mm_to_feet(1000), 3.280840), true);
QCOMPARE(feet_to_mm(1), (long unsigned int) 305);
}
-QTEST_MAIN(TestUnitConversion) \ No newline at end of file
+QTEST_MAIN(TestUnitConversion)