From a100f6d13a640980dd6141c75c511086cebec1bb Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 7 Feb 2021 18:41:18 -0500 Subject: [PATCH] plot tests: guard with notcurses_canbraille() --- tests/plot.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/tests/plot.cpp b/tests/plot.cpp index ed5a519fb..0e0f966a9 100644 --- a/tests/plot.cpp +++ b/tests/plot.cpp @@ -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; - // FIXME loop throughout plane, check all cells - auto egc = ncplane_at_yx(ncp, 5, 49, &smask, &channels); - CHECK(0 == strcmp(egc, "⣿")); + 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,