diff options
Diffstat (limited to 'tests/check_error.c')
-rw-r--r-- | tests/check_error.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/check_error.c b/tests/check_error.c index 7fc3c3e..c990b45 100644 --- a/tests/check_error.c +++ b/tests/check_error.c @@ -20,28 +20,6 @@ static void -test_error_new(void **state) -{ - sb_error_t *error = sb_error_new(1, "bola %s"); - assert_non_null(error); - assert_int_equal(error->code, 1); - assert_string_equal(error->msg, "bola %s"); - sb_error_free(error); -} - - -static void -test_error_new_printf(void **state) -{ - sb_error_t *error = sb_error_new_printf(2, "bola %s", "guda"); - assert_non_null(error); - assert_int_equal(error->code, 2); - assert_string_equal(error->msg, "bola guda"); - sb_error_free(error); -} - - -static void test_error_parser(void **state) { const char *a = "bola\nguda\nchunda\n"; @@ -105,8 +83,6 @@ int main(void) { const UnitTest tests[] = { - unit_test(test_error_new), - unit_test(test_error_new_printf), unit_test(test_error_parser), unit_test(test_error_parser_crlf), }; |