mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
tests: apply clang modernizations
This commit is contained in:
parent
a571f4daaa
commit
ed548ab590
@ -531,7 +531,7 @@ TEST_CASE("NCPlane") {
|
||||
CHECK(0 == testcell.channels);
|
||||
int dimy, dimx;
|
||||
ncplane_dim_yx(n_, &dimy, &dimx);
|
||||
REQUIRE(0 == ncplane_cursor_move_yx(n_, 1, dimx - mbstowcs(NULL, STR2, 0)));
|
||||
REQUIRE(0 == ncplane_cursor_move_yx(n_, 1, dimx - mbstowcs(nullptr, STR2, 0)));
|
||||
REQUIRE(0 < ncplane_putstr(n_, STR2));
|
||||
int y, x;
|
||||
ncplane_cursor_yx(n_, &y, &x);
|
||||
@ -543,7 +543,7 @@ TEST_CASE("NCPlane") {
|
||||
CHECK(!strcmp("Σ", cell_extended_gcluster(n_, &testcell)));
|
||||
CHECK(0 == testcell.attrword);
|
||||
CHECK(0 == testcell.channels);
|
||||
REQUIRE(0 == ncplane_cursor_move_yx(n_, 1, dimx - mbstowcs(NULL, STR2, 0)));
|
||||
REQUIRE(0 == ncplane_cursor_move_yx(n_, 1, dimx - mbstowcs(nullptr, STR2, 0)));
|
||||
REQUIRE(0 < ncplane_at_cursor_cell(n_, &testcell)); // want first char of STR2
|
||||
CHECK(!strcmp("α", cell_extended_gcluster(n_, &testcell)));
|
||||
CHECK(0 == testcell.attrword);
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "main.h"
|
||||
#include <iostream>
|
||||
|
||||
int panelcb(struct nctablet* t, int begx, int begy, int maxx, int maxy, bool cliptop){
|
||||
auto panelcb(struct nctablet* t, int begx, int begy, int maxx, int maxy, bool cliptop) -> int {
|
||||
CHECK(nctablet_ncplane(t));
|
||||
CHECK(begx < maxx);
|
||||
CHECK(begy < maxy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user