add test file for progressbars #1258

pull/1259/head
nick black 3 years ago
parent f22ddfa72f
commit dad7a02b25
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1,6 +1,6 @@
#include "main.h"
TEST_CASE("NotcursesInput") {
TEST_CASE("Input") {
auto nc_ = testing_notcurses();
if(!nc_){
return;

@ -2,7 +2,7 @@
#include <cstring>
#include <iostream>
TEST_CASE("MenuTest") {
TEST_CASE("Menu") {
auto nc_ = testing_notcurses();
if(!nc_){
return;

@ -17,7 +17,7 @@ void BoxPermutationsRounded(struct notcurses* nc, struct ncplane* n, unsigned ed
CHECK(0 == notcurses_render(nc));
}
TEST_CASE("NCPlane") {
TEST_CASE("Plane") {
auto nc_ = testing_notcurses();
if(!nc_){
return;

@ -0,0 +1,17 @@
#include "main.h"
#include <cstring>
#include <iostream>
TEST_CASE("ProgressBar") {
auto nc_ = testing_notcurses();
if(!nc_){
return;
}
struct ncplane* n_ = notcurses_stdplane(nc_);
REQUIRE(n_);
REQUIRE(0 == ncplane_cursor_move_yx(n_, 0, 0));
// FIXME add tests
CHECK(0 == notcurses_stop(nc_));
}
Loading…
Cancel
Save