mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
tester: introduce testing_notcurses() #718
This commit is contained in:
parent
3f114f4305
commit
a46dcc5fe4
@ -13,6 +13,13 @@
|
|||||||
|
|
||||||
static const char* datadir = NOTCURSES_SHARE;
|
static const char* datadir = NOTCURSES_SHARE;
|
||||||
|
|
||||||
|
auto testing_notcurses() -> struct notcurses* {
|
||||||
|
notcurses_options nopts{};
|
||||||
|
nopts.loglevel = NCLOGLEVEL_DEBUG;
|
||||||
|
auto nc = notcurses_init(&nopts, nullptr);
|
||||||
|
return nc;
|
||||||
|
}
|
||||||
|
|
||||||
auto find_data(const char* datum) -> char* {
|
auto find_data(const char* datum) -> char* {
|
||||||
std::filesystem::path p = datadir;
|
std::filesystem::path p = datadir;
|
||||||
p /= datum;
|
p /= datum;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
auto find_data(const char* datum) -> char*;
|
auto find_data(const char* datum) -> char*;
|
||||||
auto enforce_utf8() -> bool;
|
auto enforce_utf8() -> bool;
|
||||||
|
auto testing_notcurses() -> struct notcurses*;
|
||||||
|
|
||||||
class TestOptions : public notcurses_options {
|
class TestOptions : public notcurses_options {
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user