Includes some corrections to existing unit tests.

Thank you,
Lakshman
From 715c913999e27bccce7e25f6853f59b7f3593562 Mon Sep 17 00:00:00 2001
From: Lakshman Anumolu <acrlaksh...@gmail.com>
Date: Tue, 15 Apr 2014 11:20:53 -0500
Subject: [PATCH] some corrections to unit tests

Addresses some corrections to unit tests.

Signed-off-by: Lakshman Anumolu <acrlaksh...@gmail.com>
---
 tests/testunitconversion.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/testunitconversion.cpp b/tests/testunitconversion.cpp
index 54b7e1b..4b55b9f 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)
-- 
1.8.3.2

_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to