From 45d0ca54e98c25ff0ed3677e456dc97882021039 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 16 Dec 2020 06:46:54 -0500 Subject: [PATCH] add SetStruck directmode test --- tests/direct.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/direct.cpp b/tests/direct.cpp index 84052def4..1175c06d0 100644 --- a/tests/direct.cpp +++ b/tests/direct.cpp @@ -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