Skip to content

Commit

Permalink
undercurl unit test #1758
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jun 18, 2021
1 parent ff6da44 commit 486f1ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tests/direct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ TEST_CASE("Direct") {
}
}

SUBCASE("SetUndercurl") {
unsigned styles = ncdirect_supported_styles(nc_);
if(styles & NCSTYLE_UNDERCURL){
CHECK(0 == ncdirect_set_styles(nc_, NCSTYLE_UNDERCURL));
printf("DirectMode *undercurl*!\n");
fflush(stdout);
CHECK(0 == ncdirect_off_styles(nc_, NCSTYLE_UNDERCURL));
}
}

SUBCASE("SetStruck") {
unsigned styles = ncdirect_supported_styles(nc_);
if(styles & NCSTYLE_STRUCK){
Expand Down

0 comments on commit 486f1ce

Please sign in to comment.