From 55baa555410bc15781d9084a63315b764ba493dc Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 14 Aug 2020 05:00:27 -0400 Subject: [PATCH] wide tests: kill one last allocation --- tests/wide.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/wide.cpp b/tests/wide.cpp index 2c7af3190..7d5843012 100644 --- a/tests/wide.cpp +++ b/tests/wide.cpp @@ -379,10 +379,7 @@ TEST_CASE("Wide") { free(egc); cell cl = CELL_TRIVIAL_INITIALIZER, cr = CELL_TRIVIAL_INITIALIZER; CHECK(3 == ncplane_at_yx_cell(n_, 1, 1, &cl)); - egc = cell_strdup(n_, &cl); - REQUIRE(nullptr != egc); - CHECK(0 == strcmp("六", egc)); - free(egc); + CHECK(0 == strcmp("六", cell_extended_gcluster(n_, &cl))); CHECK(0 == ncplane_at_yx_cell(n_, 1, 2, &cr)); REQUIRE(cell_simple_p(&cr)); CHECK(0 == cr.gcluster);