From f0d31caa3955365f6a393d788831f4b53fade000 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Sat, 4 Jan 2014 11:51:14 -0500 Subject: Fix parse_bool tests. --- tests/read_tests.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests') 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 -- cgit 1.2.3-korg