mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
add SetStruck directmode test
This commit is contained in:
parent
35cb5d9511
commit
45d0ca54e9
@ -28,6 +28,13 @@ TEST_CASE("DirectMode") {
|
||||
CHECK(0 == ncdirect_styles_off(nc_, NCSTYLE_UNDERLINE));
|
||||
}
|
||||
|
||||
SUBCASE("SetStruck") {
|
||||
CHECK(0 == ncdirect_styles_set(nc_, NCSTYLE_STRUCK));
|
||||
printf("DirectMode *struck*!\n");
|
||||
fflush(stdout);
|
||||
CHECK(0 == ncdirect_styles_off(nc_, NCSTYLE_STRUCK));
|
||||
}
|
||||
|
||||
CHECK(0 == ncdirect_stop(nc_));
|
||||
|
||||
// make sure that we can pass undefined flags and still create the ncdirect
|
||||
|
Loading…
x
Reference in New Issue
Block a user