packaging 1.1.3
[psensor-pkg-debian.git] / tests / test_psensor_type_to_unit_str.c
index ddd2abe..3ce27f8 100644 (file)
 #include "../src/lib/psensor.h"
 
 static int
-test_fct(unsigned int type, int use_celcius, const char *ref)
+test_fct(unsigned int type, int use_celsius, const char *ref)
 {
        const char *u;
 
-       u = psensor_type_to_unit_str(type, use_celcius);
+       u = psensor_type_to_unit_str(type, use_celsius);
        if (strcmp(ref, u)) {
                fprintf(stderr, "returns: %s expected: %s\n", u, ref);
                return 0;
@@ -59,7 +59,7 @@ static int test() {
        if (!test_fct(SENSOR_TYPE_LMSENSOR | SENSOR_TYPE_TEMP, 0, "\302\260F"))
                failures++;
 
-       if (!test_fct(SENSOR_TYPE_FAN, 0, _("RPM")))
+       if (!test_fct(SENSOR_TYPE_RPM, 0, _("RPM")))
                failures++;
 
        return failures;