add SetStruck directmode test

This commit is contained in:
nick black 2020-12-16 06:46:54 -05:00
parent 35cb5d9511
commit 45d0ca54e9
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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