示例#1
0
bool test1() {
    Temperature temperature;
    temperature.setTempFahrenheit(50);
    return roundl(temperature.getTempKelvin()) == 283;
};
示例#2
0
bool test2() {
    Temperature temperature;
    temperature.setTempCelsius(50);
    return roundl(temperature.getTempKelvin()) == 323;
};
示例#3
0
bool test0() {
    Temperature temperature;
    temperature.setTempKelvin(50);
    return temperature.getTempKelvin() == 50;
};