summaryrefslogtreecommitdiff
path: root/src/opengl/window.test.c
blob: 505c87675589bff64149a59fb53bc8ee9af19f61 (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
#include <stdlib.h>
#include <lua.h>
#include <honeysuckle.h>
#include "test/honey-test.h"

#include "window.c"


void create_window_data_works()
{
	lua_State *L = luaL_newstate();
	struct window_data *wdata = create_window_data(L);

	lily_assert_ptr_equal(L, wdata->L);
	lily_assert_int_equal(wdata->framebuffer_size_callback, LUA_NOREF);
	lua_close(L);
	free(wdata);
}


void suite_window()
{
	lily_run_test(create_window_data_works);
}