mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
ensure UTF8 for metric tests
This commit is contained in:
parent
305b517191
commit
11600b6820
@ -25,8 +25,7 @@ TEST_CASE("Cell") {
|
||||
if(getenv("TERM") == nullptr){
|
||||
return;
|
||||
}
|
||||
FILE* outfp_{};
|
||||
outfp_ = fopen("/dev/tty", "wb");
|
||||
FILE* outfp_ = fopen("/dev/tty", "wb");
|
||||
REQUIRE(nullptr != outfp_);
|
||||
notcurses_options nopts{};
|
||||
nopts.inhibit_alternate_screen = true;
|
||||
|
@ -5,8 +5,7 @@ TEST_CASE("DirectMode") {
|
||||
if(getenv("TERM") == nullptr){
|
||||
return;
|
||||
}
|
||||
FILE* outfp_{};
|
||||
outfp_ = fopen("/dev/tty", "wb");
|
||||
FILE* outfp_ = fopen("/dev/tty", "wb");
|
||||
REQUIRE(nullptr != outfp_);
|
||||
struct ncdirect* nc_ = ncdirect_init(NULL, outfp_);
|
||||
REQUIRE(nullptr != nc_);
|
||||
|
@ -20,6 +20,9 @@ char* impericize_ncmetric(uintmax_t val, unsigned decimal, char* buf,
|
||||
}
|
||||
|
||||
TEST_CASE("ncmetric") {
|
||||
if(!enforce_utf8()){
|
||||
return;
|
||||
}
|
||||
const char* decisep = localeconv()->decimal_point;
|
||||
REQUIRE(decisep);
|
||||
REQUIRE(1 == strlen(decisep));
|
||||
|
Loading…
x
Reference in New Issue
Block a user