add a unit test for ncdirect boxen #1752

pull/1755/head
nick black 3 years ago
parent fce6ee22db
commit 4731e8269f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1,7 +1,7 @@
#include "main.h"
#include <notcurses/direct.h>
TEST_CASE("DirectMode") {
TEST_CASE("Direct") {
struct ncdirect* nc_ = ncdirect_init(NULL, stdout, 0);
if(!nc_){
return;
@ -53,6 +53,14 @@ TEST_CASE("DirectMode") {
}
}
SUBCASE("BoxDefault") {
uint64_t chans = CHANNELS_RGB_INITIALIZER(255, 0, 255, 0, 0, 0);
ncchannels_set_bg_default(&chans);
ncdirect_set_bg_rgb8(nc_, 0x88, 0x88, 0x88);
printf("test background\n");
CHECK(0 == ncdirect_rounded_box(nc_, chans, chans, chans, chans, 8, 8, 0));
}
#ifndef NOTCURSES_USE_MULTIMEDIA
SUBCASE("VisualDisabled"){
CHECK(!ncdirect_canopen_images(nc_));

Loading…
Cancel
Save