summaryrefslogtreecommitdiffstats
path: root/tests/write_tests.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-03 23:45:40 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-03 23:45:40 -0500
commit6f3a81ed8287357b54aad16bff27495c6eaca6df (patch)
treefe043dcd9fa5d96895509c42d229840c29334043 /tests/write_tests.c
parent921b43ea8aaa377a42a11cede653165ec84d8aa4 (diff)
Checkpoint commit renaming some functions for clarity.
Diffstat (limited to 'tests/write_tests.c')
-rw-r--r--tests/write_tests.c10
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