summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-29 14:18:50 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-29 14:18:50 -0500
commite5a2a6b9550319cf05c3a3ae93080b17d322078e (patch)
tree067e980d8140983b842dc7a886160ce0e83700cd /tests
parente3bb578a0b11a25b0ae4c805fb7b98b724103b6f (diff)
Document all bitfield functions.
Diffstat (limited to 'tests')
-rw-r--r--tests/8byte_tests.c4
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);