mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
fix up EmitWchar unit test
This commit is contained in:
parent
e77c584815
commit
3085a5db31
@ -120,9 +120,9 @@ TEST_F(NcplaneTest, EmitCell) {
|
|||||||
|
|
||||||
// Verify we can emit a wide character, and it advances the cursor
|
// Verify we can emit a wide character, and it advances the cursor
|
||||||
TEST_F(NcplaneTest, EmitWchar) {
|
TEST_F(NcplaneTest, EmitWchar) {
|
||||||
const wchar_t w = L'✔';
|
const wchar_t* w = L"✔";
|
||||||
int sbytes;
|
int sbytes = 0;
|
||||||
EXPECT_LT(0, ncplane_putwegc(n_, &w, 0, 0, &sbytes));
|
EXPECT_LT(0, ncplane_putwegc(n_, w, 0, 0, &sbytes));
|
||||||
int x, y;
|
int x, y;
|
||||||
ncplane_cursor_yx(n_, &y, &x);
|
ncplane_cursor_yx(n_, &y, &x);
|
||||||
EXPECT_EQ(0, y);
|
EXPECT_EQ(0, y);
|
||||||
|
Loading…
Reference in New Issue
Block a user