mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
fills unit test: require nccell_strdup() success
This commit is contained in:
parent
fb9488e7b5
commit
e968b3972c
@ -504,6 +504,7 @@ TEST_CASE("Fills") {
|
|||||||
CHECK(0 < ncplane_at_yx_cell(p1, y, x, &c1));
|
CHECK(0 < ncplane_at_yx_cell(p1, y, x, &c1));
|
||||||
if(y < 1 || y > 5 || x < 1 || x > 5){
|
if(y < 1 || y > 5 || x < 1 || x > 5){
|
||||||
auto cstr = nccell_strdup(p1, &c1);
|
auto cstr = nccell_strdup(p1, &c1);
|
||||||
|
REQUIRE(nullptr != cstr);
|
||||||
CHECK(0 == strcmp(cstr, "█"));
|
CHECK(0 == strcmp(cstr, "█"));
|
||||||
free(cstr);
|
free(cstr);
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user