mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-05 06:01:03 +00:00
Get GNU MPFR and MPC tests to pass
This change fixes more issues with our scanf() function.
This commit is contained in:
parent
63a1636e1f
commit
6ef2a471e4
37 changed files with 389 additions and 865 deletions
|
@ -17,8 +17,10 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/dce.h"
|
||||
#include "libc/mem/gc.internal.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
#include "libc/x/xasprintf.h"
|
||||
|
||||
TEST(fprintf, testWriteError) {
|
||||
// Only Linux, NetBSD and FreeBSD are known to have /dev/full
|
||||
|
@ -32,3 +34,8 @@ TEST(fprintf, testWriteError) {
|
|||
|
||||
ASSERT_EQ(fclose(fp), 0);
|
||||
}
|
||||
|
||||
TEST(fun, test) {
|
||||
ASSERT_STREQ("-0x1.4p+0", gc(xasprintf("%a", -1.25)));
|
||||
ASSERT_STREQ("0x1p-17", gc(xasprintf("%a", 7.62939453125e-6)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue