|
|
@ -1,7 +1,7 @@
|
|
|
|
#include "main.h"
|
|
|
|
#include "main.h"
|
|
|
|
#include <notcurses/direct.h>
|
|
|
|
#include <notcurses/direct.h>
|
|
|
|
|
|
|
|
|
|
|
|
TEST_CASE("DirectMode") {
|
|
|
|
TEST_CASE("Direct") {
|
|
|
|
struct ncdirect* nc_ = ncdirect_init(NULL, stdout, 0);
|
|
|
|
struct ncdirect* nc_ = ncdirect_init(NULL, stdout, 0);
|
|
|
|
if(!nc_){
|
|
|
|
if(!nc_){
|
|
|
|
return;
|
|
|
|
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
|
|
|
|
#ifndef NOTCURSES_USE_MULTIMEDIA
|
|
|
|
SUBCASE("VisualDisabled"){
|
|
|
|
SUBCASE("VisualDisabled"){
|
|
|
|
CHECK(!ncdirect_canopen_images(nc_));
|
|
|
|
CHECK(!ncdirect_canopen_images(nc_));
|
|
|
|