BigMult unit tests: fix for non-'.' decseps

pull/1270/head
nick black 4 years ago
parent 7e20a25482
commit 69e329d328
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -269,7 +269,7 @@ drawpalette(struct ncdirect* nc){
if(y * 64 + truex >= psize){
break;
}
if(ncdirect_bg_palindex(nc, y * 64 + truex)){
if(ncdirect_set_bg_palindex(nc, y * 64 + truex)){
return -1;
}
if(putchar(' ') == EOF){

@ -457,11 +457,11 @@ TEST_CASE("Metric") {
// inspired by #929
SUBCASE("BigMult") {
char qbuf[IPREFIXSTRLEN + 1];
CHECK(nullptr != qprefix(1115614, 1000, qbuf, '\0'));
CHECK(nullptr != impericize_ncmetric(1115614, 1000, qbuf, 0, 1000, '\0'));
CHECK(0 == strcmp("1.11K", qbuf));
CHECK(nullptr != iprefix(372688, 1024, qbuf, '\0'));
CHECK(nullptr != impericize_ncmetric(372688, 1024, qbuf, 0, 1024, '\0'));
CHECK(0 == strcmp("363.95", qbuf));
CHECK(nullptr != iprefix(372688, 1, qbuf, '\0'));
CHECK(nullptr != impericize_ncmetric(372688, 1, qbuf, 0, 1024, '\0'));
CHECK(0 == strcmp("363.95K", qbuf));
}

Loading…
Cancel
Save