summaryrefslogtreecommitdiffstats
path: root/tests/read_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/read_tests.c')
-rw-r--r--tests/read_tests.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/read_tests.c b/tests/read_tests.c
index 512d87e8..5008cc52 100644
--- a/tests/read_tests.c
+++ b/tests/read_tests.c
@@ -36,11 +36,8 @@ END_TEST
START_TEST (test_bitfield_parse_bool)
{
- bool result = bitfield_parse_bool(ARRAY_TEST_DATA, sizeof(ARRAY_TEST_DATA),
- 0, 1, 1.0, 0);
- bool correctResult = true;
- fail_unless(result == correctResult,
- "parse is incorrect: %d but should be %d", result, correctResult);
+ fail_unless(bitfield_parse_bool(ARRAY_TEST_DATA, sizeof(ARRAY_TEST_DATA),
+ 0, 1, 1.0, 0));
}
END_TEST