diff --git a/test/tests.c b/test/tests.c index 33dd393..1d3cbee 100644 --- a/test/tests.c +++ b/test/tests.c @@ -85,6 +85,13 @@ static void eq_bad(void **state) assert_false(eq("a", "b")); } +static void eq_NULL(void **state) +{ + assert_null(eq(NULL, "a")); + assert_null(eq("a", NULL)); + assert_null(eq(NULL, NULL)); +} + static void lt_good(void **state) { assert_true(lt("a", "b")); @@ -135,13 +142,6 @@ static void str_NULL(void **state) assert_null(str(NULL)); } -static void eq_NULL(void **state) -{ - assert_null(eq(NULL, "a")); - assert_null(eq("a", NULL)); - assert_null(eq(NULL, NULL)); -} - int main(void) { const struct CMUnitTest tests[] = {