lpabon / cmockery2

Reviving cmockery unit test framework from Google
Apache License 2.0
69 stars 39 forks source link

expect_check() and expect_in_set() are broken #29

Open zr5dt opened 9 years ago

zr5dt commented 9 years ago

The expect_check() and expect_in_set() don't work. They fail even when given the correct expected data. Following is a patch that fixes both functions:

diff --git a/src/cmockery.c b/src/cmockery.c index d651e9b..ca6d8b6 100755 --- a/src/cmockery.c +++ b/src/cmockery.c @@ -972,6 +972,7 @@ static void expect_set( assert_true(number_of_values); memcpy(set, values, number_of_values * sizeof(values[0])); check_integer_set->set = set;

zr5dt commented 9 years ago

Sorry about the messed up message before. I have now provided the patch in a pull-request (#30).