fix up LayoutLeadingSpaces test not to send tabs

This commit is contained in:
nick black 2021-06-27 07:17:39 -04:00
parent c69c14e5be
commit 64abad918e
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -296,13 +296,13 @@ TEST_CASE("TextLayout") {
auto sp = ncplane_create(n_, &nopts);
REQUIRE(sp);
size_t bytes;
const char boundstr[] = " \t\n my thermonuclear arms";
const char boundstr[] = " \n my thermonuclear arms";
CHECK(0 < ncplane_puttext(sp, 0, NCALIGN_CENTER, boundstr, &bytes));
CHECK(0 == notcurses_render(nc_));
CHECK(bytes == strlen(boundstr));
char* line = ncplane_contents(sp, 0, 0, -1, -1);
REQUIRE(line);
CHECK(0 == strcmp(line, " my thermonuclear arms"));
CHECK(0 == strcmp(line, " my thermonuclear arms"));
free(line);
ncplane_destroy(sp);
}