1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-27 20:51:17 +00:00
erc-c/tests/vm_screen.c
2017-12-24 15:07:24 -06:00

22 lines
510 B
C

#include <criterion/criterion.h>
#include "vm_screen.h"
Test(vm_screen, create) {
vm_screen *screen;
screen = vm_screen_create();
cr_assert_neq(screen, NULL);
cr_assert_eq(screen->window, NULL);
cr_assert_eq(screen->render, NULL);
cr_assert_eq(screen->rect.x, 0);
cr_assert_eq(screen->rect.y, 0);
cr_assert_eq(screen->rect.w, 0);
cr_assert_eq(screen->rect.h, 0);
cr_assert_eq(screen->xcoords, 0);
cr_assert_eq(screen->ycoords, 0);
vm_screen_free(screen);
}