Moved code around to make possible to compile the C part alone.

The C code should be compilable without the need to compile the Gui part,
too. This is expecially good for unit testing as we can test all the
algorithms without a window appearing out of nowhere.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-04-17 12:21:39 -03:00 committed by Dirk Hohndel
parent 9598462830
commit 55d010bad8
6 changed files with 169 additions and 144 deletions

View file

@ -20,6 +20,7 @@ void TestUnitConversion::testUnitConversions()
QCOMPARE(IS_FP_SAME(bar_to_atm(1.013), 1), true);
QCOMPARE(IS_FP_SAME(mbar_to_atm(1013), 1), true);
QCOMPARE(mbar_to_PSI(1013), (int)15);
get_units();
}
QTEST_MAIN(TestUnitConversion)