mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Make improvements
- Fix unused local variable errors - Remove yoinks from sigaction() header - Add nox87 and aarch64 to github actions - Fix cosmocc -fportcosmo in linking mode - It's now possible to build `make m=llvm o/llvm/libc`
This commit is contained in:
parent
3dc86ce154
commit
f7ae50462a
118 changed files with 342 additions and 392 deletions
|
@ -310,7 +310,14 @@ TEST(fmt, e) {
|
|||
TEST(fmt, a) {
|
||||
EXPECT_STREQ("0x0p+0", _gc(xasprintf("%a", 0.)));
|
||||
EXPECT_STREQ("0x0p+0", _gc(xasprintf("%.a", 0.)));
|
||||
EXPECT_STREQ(" 0x0p+0", _gc(xasprintf("%7.a", 0.)));
|
||||
EXPECT_STREQ("0x0.000p+0", _gc(xasprintf("%.3a", 0.)));
|
||||
// EXPECT_STREQ(" 0x0.000p+0\n", _gc(xasprintf("%11.3a\n", 0.))); // TODO
|
||||
EXPECT_STREQ("inf\n", _gc(xasprintf("%g\n", INFINITY)));
|
||||
EXPECT_STREQ(" inf\n", _gc(xasprintf("%5g\n", INFINITY)));
|
||||
EXPECT_STREQ(" +inf\n", _gc(xasprintf("%+5g\n", INFINITY)));
|
||||
EXPECT_STREQ(" inf\n", _gc(xasprintf("% g\n", INFINITY)));
|
||||
EXPECT_STREQ("-inf\n", _gc(xasprintf("% g\n", -INFINITY)));
|
||||
EXPECT_STREQ("0x1.921fb54442d18p+1",
|
||||
_gc(xasprintf("%a", 0x1.921fb54442d1846ap+1)));
|
||||
EXPECT_STREQ("0X1.921FB54442D18P+1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue