15 #include "eckit/log/Timer.h"
22 using namespace eckit;
29 Timer t(
"Test various functions to convert temperatures");
49 PathName(
"test_tempconv.odb").unlink();
54 const string sql =
"select celsius(kelvin_col), fahrenheit(kelvin_col), c2k(celsius_col),c2f(celsius_col),f2c(fahrenheit_col), f2k(fahrenheit_col), k2f(kelvin_col) from \"test_tempconv.odb\";";
56 Log::info() <<
"Executing: '" << sql <<
"'" << std::endl;
61 ASSERT((*it)[0] == 0.0);
62 ASSERT((*it)[1] == 32);
63 ASSERT((*it)[2] == 273.15);
64 ASSERT((*it)[3] == 32);
66 ASSERT((*it)[4] == 0);
67 ASSERT((*it)[5] == 273.15);
68 ASSERT((*it)[6] == 32);
#define SIMPLE_TEST(name)
void setNumberOfColumns(size_t n)
int setColumn(size_t index, const std::string &name, api::ColumnType type)