mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
fix up LayoutLeadingSpaces test not to send tabs
This commit is contained in:
parent
c69c14e5be
commit
64abad918e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user