fills unit test: require nccell_strdup() success

This commit is contained in:
nick black 2021-09-03 05:37:32 -04:00
parent fb9488e7b5
commit e968b3972c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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{