mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-01 02:02:28 +00:00
Make small fixes and oops ran clang-format on dtoa
This commit is contained in:
parent
b5b60015f5
commit
ac00be1a4e
47 changed files with 4933 additions and 5306 deletions
|
@ -33,10 +33,10 @@ TEST(round, test) {
|
|||
|
||||
TEST(round, testCornerCases) {
|
||||
EXPECT_STREQ("-0", gc(xdtoa(round(-0.0))));
|
||||
EXPECT_STREQ("NAN", gc(xdtoa(round(NAN))));
|
||||
EXPECT_STREQ("-NAN", gc(xdtoa(round(-NAN))));
|
||||
EXPECT_STREQ("INFINITY", gc(xdtoa(round(INFINITY))));
|
||||
EXPECT_STREQ("-INFINITY", gc(xdtoa(round(-INFINITY))));
|
||||
EXPECT_STREQ("nan", gc(xdtoa(round(NAN))));
|
||||
EXPECT_STREQ("-nan", gc(xdtoa(round(-NAN))));
|
||||
EXPECT_STREQ("inf", gc(xdtoa(round(INFINITY))));
|
||||
EXPECT_STREQ("-inf", gc(xdtoa(round(-INFINITY))));
|
||||
}
|
||||
|
||||
TEST(lround, test) {
|
||||
|
@ -60,10 +60,10 @@ TEST(roundf, test) {
|
|||
|
||||
TEST(roundf, testCornerCases) {
|
||||
EXPECT_STREQ("-0", gc(xdtoa(roundf(-0.0))));
|
||||
EXPECT_STREQ("NAN", gc(xdtoa(roundf(NAN))));
|
||||
EXPECT_STREQ("-NAN", gc(xdtoa(roundf(-NAN))));
|
||||
EXPECT_STREQ("INFINITY", gc(xdtoa(roundf(INFINITY))));
|
||||
EXPECT_STREQ("-INFINITY", gc(xdtoa(roundf(-INFINITY))));
|
||||
EXPECT_STREQ("nan", gc(xdtoa(roundf(NAN))));
|
||||
EXPECT_STREQ("-nan", gc(xdtoa(roundf(-NAN))));
|
||||
EXPECT_STREQ("inf", gc(xdtoa(roundf(INFINITY))));
|
||||
EXPECT_STREQ("-inf", gc(xdtoa(roundf(-INFINITY))));
|
||||
}
|
||||
|
||||
TEST(lroundf, test) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue