X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor-pkg-ubuntu.git;a=blobdiff_plain;f=tests%2Ftest_psensor_value_to_str.c;h=5d088672385ae7aaee3a17307fc40ea498ae1862;hp=780c8158bd84f5a567d63162e2ae411025cf5754;hb=c271a4d106a1242ff18b6f5aeb3f56280c7eaf2c;hpb=ff4ef48059048e93efa634e36d2ad10973a13de3 diff --git a/tests/test_psensor_value_to_str.c b/tests/test_psensor_value_to_str.c index 780c815..5d08867 100644 --- a/tests/test_psensor_value_to_str.c +++ b/tests/test_psensor_value_to_str.c @@ -24,18 +24,18 @@ #include "../src/lib/psensor.h" -#define CELCIUS "\302\260C" +#define CELSIUS "\302\260C" #define FAHRENHEIT "\302\260F" static int test_psensor_value_to_str(unsigned int type, double value, - int celcius, + int celsius, const char *ref) { char *str; - str = psensor_value_to_str(type, value, celcius); + str = psensor_value_to_str(type, value, celsius); if (strcmp(ref, str)) { fprintf(stderr, "returns: %s expected: %s\n", str, ref); return 1; @@ -49,13 +49,13 @@ int main(int argc, char **argv) int errs; errs = test_psensor_value_to_str(SENSOR_TYPE_TEMP, 13, 1, - "13"CELCIUS); + "13"CELSIUS); errs += test_psensor_value_to_str(SENSOR_TYPE_TEMP, 13, 0, "55"FAHRENHEIT); errs += test_psensor_value_to_str(SENSOR_TYPE_TEMP, 13.4, 1, - "13"CELCIUS); + "13"CELSIUS); errs += test_psensor_value_to_str(SENSOR_TYPE_TEMP, 13.5, 1, - "14"CELCIUS); + "14"CELSIUS); if (errs) exit(EXIT_FAILURE);