From 3085a5db317cb3e7a383b99fc0103cf314236add Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 8 Dec 2019 14:26:35 -0500 Subject: [PATCH] fix up EmitWchar unit test --- tests/ncplane.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ncplane.cpp b/tests/ncplane.cpp index 02807e511..0eec9d7f7 100644 --- a/tests/ncplane.cpp +++ b/tests/ncplane.cpp @@ -120,9 +120,9 @@ TEST_F(NcplaneTest, EmitCell) { // Verify we can emit a wide character, and it advances the cursor TEST_F(NcplaneTest, EmitWchar) { - const wchar_t w = L'✔'; - int sbytes; - EXPECT_LT(0, ncplane_putwegc(n_, &w, 0, 0, &sbytes)); + const wchar_t* w = L"✔"; + int sbytes = 0; + EXPECT_LT(0, ncplane_putwegc(n_, w, 0, 0, &sbytes)); int x, y; ncplane_cursor_yx(n_, &y, &x); EXPECT_EQ(0, y);