diff options
author | 2014-01-04 11:51:14 -0500 | |
---|---|---|
committer | 2014-01-04 11:51:14 -0500 | |
commit | f0d31caa3955365f6a393d788831f4b53fade000 (patch) | |
tree | 10fff41de2ee6d9443a499aae7090bfb03ffe888 /tests | |
parent | 28e30830755758d13458c05ebe2a8db5dc9f43a0 (diff) |
Fix parse_bool tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/read_tests.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/read_tests.c b/tests/read_tests.c index 512d87e..5008cc5 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 |