From 0edfcaf3700a6b1ef83bc71f01e7b35bb559d26f Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Wed, 7 Mar 2018 17:06:50 -0600 Subject: [PATCH] Add test for notify_refresh, skip for draw --- tests/apple2.c | 7 +++++++ tests/apple2.draw.c | 1 + 2 files changed, 8 insertions(+) diff --git a/tests/apple2.c b/tests/apple2.c index 0cfef87..dc70875 100644 --- a/tests/apple2.c +++ b/tests/apple2.c @@ -116,3 +116,10 @@ Test(apple2, set_memory_mode) cr_assert_eq(mach->cpu->rmem, mach->main); cr_assert_eq(mach->cpu->wmem, mach->aux); } + +Test(apple2, notify_refresh) +{ + cr_assert_eq(mach->screen->dirty, false); + apple2_notify_refresh(mach); + cr_assert_eq(mach->screen->dirty, true); +} diff --git a/tests/apple2.draw.c b/tests/apple2.draw.c index e0d1dd4..00a9af4 100644 --- a/tests/apple2.draw.c +++ b/tests/apple2.draw.c @@ -6,3 +6,4 @@ /* Test(apple2_draw, pixel_lores) */ /* Test(apple2_draw, text) */ /* Test(apple2_draw, 40col) */ +/* Test(apple2_draw, apple2_draw) */