Checkpoint commit renaming some functions for clarity.
[apps/agl-service-can-low-level.git] / tests / read_tests.c
index 71b0ab6..1cde461 100644 (file)
@@ -6,7 +6,7 @@ const uint64_t BIG_ENDIAN_TEST_DATA = __builtin_bswap64(0xEB00000000000000);
 
 START_TEST (test_parse_float)
 {
-    float result = bitfield_parse_float(BIG_ENDIAN_TEST_DATA, 2, 4, 1001.0,
+    float result = eightbyte_parse_float(BIG_ENDIAN_TEST_DATA, 2, 4, 1001.0,
             -30000.0);
     float correctResult = 0xA * 1001.0 - 30000.0;
     fail_unless(result == correctResult,
@@ -16,7 +16,7 @@ END_TEST
 
 START_TEST (test_parse_bool)
 {
-    float result = bitfield_parse_bool(BIG_ENDIAN_TEST_DATA, 0, 1, 1.0, 0);
+    float result = eightbyte_parse_bool(BIG_ENDIAN_TEST_DATA, 0, 1, 1.0, 0);
     float correctResult = true;
     fail_unless(result == correctResult,
             "parse is incorrect: %d but should be %d", result, correctResult);