1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-27 01:32:17 +00:00
erc-c/tests/vm_area.c
2018-01-07 20:05:02 -06:00

15 lines
265 B
C

#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);
}