2017-12-02 19:05:53 +00:00
|
|
|
#include <criterion/criterion.h>
|
|
|
|
|
|
|
|
#include "vm_screen.h"
|
|
|
|
|
2017-12-17 22:42:05 +00:00
|
|
|
Test(vm_screen, create) {
|
|
|
|
vm_screen *screen;
|
2017-12-02 19:05:53 +00:00
|
|
|
|
2017-12-24 21:07:24 +00:00
|
|
|
screen = vm_screen_create();
|
2017-12-17 22:42:05 +00:00
|
|
|
cr_assert_neq(screen, NULL);
|
2017-12-02 19:05:53 +00:00
|
|
|
|
2017-12-18 20:46:40 +00:00
|
|
|
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);
|
2017-12-24 21:07:24 +00:00
|
|
|
cr_assert_eq(screen->xcoords, 0);
|
|
|
|
cr_assert_eq(screen->ycoords, 0);
|
2017-12-02 19:05:53 +00:00
|
|
|
|
2017-12-17 22:42:05 +00:00
|
|
|
vm_screen_free(screen);
|
2017-12-02 19:05:53 +00:00
|
|
|
}
|