Unit tests for temperature, virtual method for value conversion

This commit is contained in:
Klaus Basan
2013-03-22 23:02:25 +01:00
parent 525910c7a3
commit 3b99954bdc
12 changed files with 136 additions and 41 deletions

View File

@@ -54,7 +54,9 @@ int main(int argc, char *argv[])
CTemperature t1;
CTemperature t2(20, CTemperatureUnit::C());
qDebug() << t1 << t2;
CTemperature t3(1, CTemperatureUnit::F());
qDebug() << t1 << t2 << t2.convertedSiValueRoundedWithUnit();
qDebug() << t3 << t3.valueRoundedWithUnit(CTemperatureUnit::C());
// some logging wit CLogMessage
bDebug << p1;