1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-28 11:51:06 +00:00
erc-c/tests/vm_area.c

15 lines
265 B
C
Raw Normal View History

2018-01-08 02:05:02 +00:00
#include <criterion/criterion.h>
#include "vm_area.h"
Test(vm_area, set)
{
vm_area area;
vm_area_set(&area, 1, 2, 3, 4);
cr_assert_eq(area.xoff, 1);
cr_assert_eq(area.yoff, 2);
cr_assert_eq(area.width, 3);
cr_assert_eq(area.height, 4);
}