diff options
Diffstat (limited to 'tests/write_tests.c')
-rw-r--r-- | tests/write_tests.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/write_tests.c b/tests/write_tests.c index 4091ac4f..8f34a468 100644 --- a/tests/write_tests.c +++ b/tests/write_tests.c @@ -4,26 +4,26 @@ START_TEST (test_encode_can_signal) { - uint64_t value = bitfield_encode_float(0, 1, 3, 1, 0); + uint64_t value = eightbyte_encode_float(0, 1, 3, 1, 0); ck_assert_int_eq(value, 0); - value = bitfield_encode_float(1, 1, 3, 1, 0); + value = eightbyte_encode_float(1, 1, 3, 1, 0); ck_assert_int_eq(value, 0x1000000000000000LLU); } END_TEST START_TEST (test_encode_can_signal_rounding_precision) { - uint64_t value = bitfield_encode_float(50, 2, 19, 0.001, 0); + uint64_t value = eightbyte_encode_float(50, 2, 19, 0.001, 0); ck_assert_int_eq(value, 0x061a800000000000LLU); } END_TEST START_TEST (test_encode_bool) { - uint64_t value = bitfield_encode_bool(true, 1, 3); + uint64_t value = eightbyte_encode_bool(true, 1, 3); ck_assert_int_eq(value, 0x1000000000000000LLU); - value = bitfield_encode_bool(false, 1, 3); + value = eightbyte_encode_bool(false, 1, 3); ck_assert_int_eq(value, 0x0000000000000000LLU); } END_TEST |