mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
zaxis test: update to api3
This commit is contained in:
parent
96ac640733
commit
76bcb8f0af
@ -112,7 +112,7 @@ TEST_CASE("ZAxis") {
|
||||
SUBCASE("ZAxisDamage") {
|
||||
nccell cat = CELL_TRIVIAL_INITIALIZER;
|
||||
nccell c = CELL_CHAR_INITIALIZER('x');
|
||||
REQUIRE(!cell_set_fg_rgb8(&c, 0xff, 0, 0));
|
||||
REQUIRE(!nccell_set_fg_rgb8(&c, 0xff, 0, 0));
|
||||
REQUIRE(1 == ncplane_putc(n_, &c));
|
||||
CHECK(!notcurses_render(nc_));
|
||||
REQUIRE(!ncplane_cursor_move_yx(n_, 0, 0));
|
||||
@ -129,7 +129,7 @@ TEST_CASE("ZAxis") {
|
||||
};
|
||||
struct ncplane* n2 = ncplane_create(n_, &nopts);
|
||||
REQUIRE(1 == nccell_load(n2, &c, "y"));
|
||||
REQUIRE(!cell_set_fg_rgb8(&c, 0, 0xff, 0));
|
||||
REQUIRE(!nccell_set_fg_rgb8(&c, 0, 0xff, 0));
|
||||
REQUIRE(1 == ncplane_putc(n2, &c));
|
||||
CHECK_EQ(0, notcurses_render(nc_));
|
||||
REQUIRE(!ncplane_cursor_move_yx(n2, 0, 0));
|
||||
@ -137,7 +137,7 @@ TEST_CASE("ZAxis") {
|
||||
REQUIRE(0 == strcmp("y", nccell_extended_gcluster(n_, &c)));
|
||||
struct ncplane* n3 = ncplane_create(n_, &nopts);
|
||||
REQUIRE(1 == nccell_load(n3, &c, "z"));
|
||||
REQUIRE(!cell_set_fg_rgb8(&c, 0, 0, 0xff));
|
||||
REQUIRE(!nccell_set_fg_rgb8(&c, 0, 0, 0xff));
|
||||
REQUIRE(1 == ncplane_putc(n3, &c));
|
||||
CHECK(!notcurses_render(nc_));
|
||||
REQUIRE(!ncplane_cursor_move_yx(n3, 0, 0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user