grim/gplate
Clone
Summary
Browse
Changes
Graph
The start of moving testing from autotools and check to gtester and ctest
2010-06-26, Gary Kramlich
125f0d26e4cb
The start of moving testing from autotools and check to gtester and ctest
refs #11
#include
"test-collection.h"
#include
"test.h"
void
test_collection_lookup
(
GPlateCollection
*
collection
,
const
gchar
*
name
,
const
gchar
*
expected
)
{
const
gchar
*
v
=
NULL
;
v
=
gplate_collection_lookup
(
collection
,
name
);
test_string
(
expected
,
v
);
}
void
test_collection_lookup_int
(
GPlateCollection
*
collection
,
const
gchar
*
name
,
gint
expected
)
{
const
gchar
*
v
=
NULL
;
gchar
*
e
=
NULL
;
v
=
gplate_collection_lookup
(
collection
,
name
);
e
=
g_strdup_printf
(
"%d"
,
expected
);
test_string
(
e
,
v
);
g_free
(
e
);
}