mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
9598462830
commit
55d010bad8
6 changed files with 169 additions and 144 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue