aboutsummaryrefslogtreecommitdiffstats
path: root/tests/read_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/read_tests.c')
-rw-r--r--tests/read_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/read_tests.c b/tests/read_tests.c
index 71b0ab6..1cde461 100644
--- a/tests/read_tests.c
+++ b/tests/read_tests.c
@@ -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);