fix up EmitWchar unit test

This commit is contained in:
nick black 2019-12-08 14:26:35 -05:00
parent e77c584815
commit 3085a5db31
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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);