ocarina/tests/gui/model.c

24 lines
475 B
C

/*
* Copyright 2016 (c) Anna Schumaker.
*/
#include <gui/model.h>
#include <tests/test.h>
static void test_model()
{
GuiQueueModel *model = gui_queue_model_new();
test_not_equal((void *)model, NULL);
test_equal(GTK_IS_TREE_MODEL(model), true);
test_equal(gtk_tree_model_get_flags(GTK_TREE_MODEL(model)),
GTK_TREE_MODEL_LIST_ONLY);
g_object_unref(model);
test_equal(G_IS_OBJECT(model), false);
}
DECLARE_UNIT_TESTS(
UNIT_TEST("Queue Model", test_model),
);