summaryrefslogtreecommitdiff
path: root/tests/test-01.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-01.c')
-rw-r--r--tests/test-01.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/test-01.c b/tests/test-01.c
deleted file mode 100644
index 543803e..0000000
--- a/tests/test-01.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-
-#include <json-glib/json-glib.h>
-
-static const gchar *test_empty = "";
-
-int
-main (int argc, char *argv[])
-{
- JsonParser *parser;
- GError *error = NULL;
-
- g_type_init ();
-
- parser = json_parser_new ();
- if (!json_parser_load_from_data (parser, test_empty, -1, &error))
- {
- g_print ("Error: %s\n", error->message);
- g_error_free (error);
- g_object_unref (parser);
-
- return EXIT_FAILURE;
- }
-
- g_assert (NULL == json_parser_get_root (parser));
-
- g_object_unref (parser);
-
- return EXIT_SUCCESS;
-}