plot tests: guard with notcurses_canbraille()

This commit is contained in:
nick black 2021-02-07 18:41:18 -05:00
parent 6b126f4049
commit a100f6d13a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -146,9 +146,6 @@ TEST_CASE("Plot") {
}
SUBCASE("BraillePlot") {
if(!notcurses_canbraille(nc_)){
return;
}
ncplane_options nopts = {
.y = 1, .x = 1, .rows = 6, .cols = 50,
.userptr = nullptr, .name = "plot", .resizecb = nullptr, .flags = 0,
@ -171,9 +168,11 @@ TEST_CASE("Plot") {
CHECK(0 == notcurses_render(nc_));
uint64_t channels;
uint16_t smask;
if(notcurses_canbraille(nc_)){
// FIXME loop throughout plane, check all cells
auto egc = ncplane_at_yx(ncp, 5, 49, &smask, &channels);
CHECK(0 == strcmp(egc, ""));
}
ncuplot_destroy(p);
}
@ -253,9 +252,6 @@ TEST_CASE("Plot") {
}
SUBCASE("BraillePlot1Row") {
if(!notcurses_canbraille(nc_)){
return;
}
ncplane_options nopts = {
.y = 1, .x = 1, .rows = 1, .cols = 25,
.userptr = nullptr, .name = "plot", .resizecb = nullptr, .flags = 0,