aboutsummaryrefslogtreecommitdiffstats
path: root/tests/check_error.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-03-13 03:05:17 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-03-13 03:05:17 +0100
commit37592b57b31987519e59117d49bccd0207e67f15 (patch)
tree3b38a237f0a7f10ec831348de16df4e98852e0d2 /tests/check_error.c
parenta2b3551dfb9460470bd79f5648bf597c517c40d4 (diff)
downloadblogc-37592b57b31987519e59117d49bccd0207e67f15.tar.gz
blogc-37592b57b31987519e59117d49bccd0207e67f15.tar.bz2
blogc-37592b57b31987519e59117d49bccd0207e67f15.zip
error: removed uneeded tests
Diffstat (limited to 'tests/check_error.c')
-rw-r--r--tests/check_error.c24
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),
};