mirror of
https://github.com/pevans/erc-c.git
synced 2024-10-03 22:54:42 +00:00
Add missing tests for new vm_screen functions
This commit is contained in:
parent
53f40ff960
commit
c8dbf1c84c
@ -68,3 +68,18 @@ Test(vm_screen, ycoords)
|
||||
cr_assert_eq(screen->ycoords, 234);
|
||||
}
|
||||
|
||||
Test(vm_screen, key_pressed)
|
||||
{
|
||||
screen->key_pressed = true;
|
||||
cr_assert_eq(vm_screen_key_pressed(screen), true);
|
||||
screen->key_pressed = false;
|
||||
cr_assert_eq(vm_screen_key_pressed(screen), false);
|
||||
}
|
||||
|
||||
Test(vm_screen, last_key)
|
||||
{
|
||||
screen->last_key = 'e';
|
||||
cr_assert_eq(vm_screen_last_key(screen), 'e');
|
||||
screen->last_key = 'y';
|
||||
cr_assert_eq(vm_screen_last_key(screen), 'y');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user