mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Make fixes and improvements
- Fix handling of precision in hex float formatting - Enhance the cocmd interpreter for system() and popen() - Manually ran the Lua unit tests, which are now passing - Let stdio i/o operations happen when file is in error state - We're now saving and restoring xmm in ftrace out of paranoia
This commit is contained in:
parent
95fbdb4f76
commit
41396ff48a
43 changed files with 495 additions and 261 deletions
|
@ -308,6 +308,9 @@ TEST(fmt, e) {
|
|||
}
|
||||
|
||||
TEST(fmt, a) {
|
||||
EXPECT_STREQ("0x0p+0", _gc(xasprintf("%a", 0.)));
|
||||
EXPECT_STREQ("0x0p+0", _gc(xasprintf("%.a", 0.)));
|
||||
EXPECT_STREQ("0x0.000p+0", _gc(xasprintf("%.3a", 0.)));
|
||||
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