1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-27 01:32:17 +00:00

Add test for vm_screen_dirty, exception for prepare

This commit is contained in:
Peter Evans 2018-02-03 22:01:27 -06:00
parent 3329753ef7
commit de67d5064b

View File

@ -83,3 +83,13 @@ Test(vm_screen, last_key)
screen->last_key = 'y'; screen->last_key = 'y';
cr_assert_eq(vm_screen_last_key(screen), 'y'); cr_assert_eq(vm_screen_last_key(screen), 'y');
} }
Test(vm_screen, dirty)
{
cr_assert_eq(vm_screen_dirty(screen), false);
screen->dirty = true;
cr_assert_eq(vm_screen_dirty(screen), true);
}
// Not a ton we can do for this function; it's all SDL
/* Test(vm_screen, prepare) */