summaryrefslogtreecommitdiff
path: root/tests/libebook/test-undefinedfield.c
blob: 03a393b1d9787e65358144f85db045b1aea7db82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdlib.h>
#include <libebook/e-contact.h>

gint
main (gint argc, gchar **argv)
{
	EContact *contact;
	gpointer test;

	g_type_init ();

	contact = e_contact_new ();

	printf ("testing e_contact_get of something suitably out of range\n");
	test = e_contact_get (contact, 6000 /* something suitably high. */);
	if (test)
	  printf ("failed, e_contact_get return non-NULL\n");
	else
	  printf ("passed\n");

	printf ("testing e_contact_get of something we don't handle yet\n");
	test = e_contact_get (contact, E_CONTACT_CATEGORY_LIST);
	if (test)
	  printf ("failed, e_contact_get return non-NULL\n");
	else
	  printf ("passed\n");

	exit (0);
}