ZAxis test: remaining fixup #906

This commit is contained in:
nick black 2020-08-27 11:31:31 -04:00
parent ee649ba0fa
commit de3737e8e1
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -96,7 +96,7 @@ TEST_CASE("ZAxis") {
CHECK_EQ(0, notcurses_render(nc_)); CHECK_EQ(0, notcurses_render(nc_));
REQUIRE(!ncplane_cursor_move_yx(n2, 0, 0)); REQUIRE(!ncplane_cursor_move_yx(n2, 0, 0));
REQUIRE(1 == ncplane_at_cursor_cell(n2, &cat)); REQUIRE(1 == ncplane_at_cursor_cell(n2, &cat));
REQUIRE('y' == cat.gcluster); REQUIRE(0 == strcmp("y", cell_extended_gcluster(n_, &c)));
struct ncplane* n3 = ncplane_new(nc_, 2, 2, 0, 0, nullptr); struct ncplane* n3 = ncplane_new(nc_, 2, 2, 0, 0, nullptr);
REQUIRE(1 == cell_load(n3, &c, "z")); REQUIRE(1 == cell_load(n3, &c, "z"));
REQUIRE(!cell_set_fg_rgb(&c, 0, 0, 0xff)); REQUIRE(!cell_set_fg_rgb(&c, 0, 0, 0xff));
@ -104,7 +104,7 @@ TEST_CASE("ZAxis") {
CHECK(!notcurses_render(nc_)); CHECK(!notcurses_render(nc_));
REQUIRE(!ncplane_cursor_move_yx(n3, 0, 0)); REQUIRE(!ncplane_cursor_move_yx(n3, 0, 0));
REQUIRE(1 == ncplane_at_cursor_cell(n3, &cat)); REQUIRE(1 == ncplane_at_cursor_cell(n3, &cat));
REQUIRE('z' == cat.gcluster); REQUIRE(0 == strcmp("z", cell_extended_gcluster(n_, &c)));
// FIXME testing damage requires notcurses keeping a copy of the screen.... // FIXME testing damage requires notcurses keeping a copy of the screen....
// FIXME move y atop z // FIXME move y atop z
// FIXME inspect // FIXME inspect