mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
add test file for progressbars #1258
This commit is contained in:
parent
f22ddfa72f
commit
dad7a02b25
@ -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;
|
17
tests/progbar.cpp
Normal file
17
tests/progbar.cpp
Normal file
@ -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…
x
Reference in New Issue
Block a user