diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-29 14:18:50 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-29 14:18:50 -0500 |
commit | e5a2a6b9550319cf05c3a3ae93080b17d322078e (patch) | |
tree | 067e980d8140983b842dc7a886160ce0e83700cd /tests | |
parent | e3bb578a0b11a25b0ae4c805fb7b98b724103b6f (diff) |
Document all bitfield functions.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/8byte_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/8byte_tests.c b/tests/8byte_tests.c index 64c1a399..6166f1d7 100644 --- a/tests/8byte_tests.c +++ b/tests/8byte_tests.c @@ -56,10 +56,10 @@ START_TEST (test_one_byte) uint64_t data = 0xFA00000000000000; uint64_t result = get_bit_field(data, 0, 4, false); fail_unless(result == 0xF, - "First 4 bits in 0x%llx was 0x%llx instead of 0xF", data, result); + "First nibble in 0x%llx was 0x%llx instead of 0xF", data, result); result = get_bit_field(data, 4, 4, false); fail_unless(result == 0xA, - "First 4 bits in 0x%llx was 0x%llx instead of 0xA", data, result); + "Second nibble in 0x%llx was 0x%llx instead of 0xA", data, result); result = get_bit_field(data, 0, 8, false); fail_unless(result == 0xFA, "All bits in 0x%llx were 0x%llx instead of 0x%llx", data, result, data); |