Piotr Caban : msvcrt: Add printf rounding tests.

Alexandre Julliard julliard at winehq.org
Fri Nov 1 15:37:47 CDT 2019


Module: wine
Branch: master
Commit: 04a5beac69faef994a6706356c9ef67ff9d4c9ae
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=04a5beac69faef994a6706356c9ef67ff9d4c9ae

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Fri Nov  1 11:49:42 2019 +0100

msvcrt: Add printf rounding tests.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/tests/printf.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/msvcrt/tests/printf.c b/dlls/msvcrt/tests/printf.c
index bfdab8cc6b..5ce4015440 100644
--- a/dlls/msvcrt/tests/printf.c
+++ b/dlls/msvcrt/tests/printf.c
@@ -243,7 +243,11 @@ static void test_sprintf( void )
         { "%C", "", 0, INT_ARG, 0x3042 },
         { "a%Cb", "ab", 0, INT_ARG, 0x3042 },
         { "%lld", "-8589934591", "1", ULONGLONG_ARG, 0, ((ULONGLONG)0xffffffff)*0xffffffff },
-        { "%I32d", "1", "I32d", INT_ARG, 1 }
+        { "%I32d", "1", "I32d", INT_ARG, 1 },
+        { "%.0f", "-2", 0, DOUBLE_ARG, 0, 0, -1.5 },
+        { "%.0f", "-1", 0, TODO_FLAG | DOUBLE_ARG, 0, 0, -0.5 },
+        { "%.0f", "1", 0, TODO_FLAG | DOUBLE_ARG, 0, 0, 0.5 },
+        { "%.0f", "2", 0, DOUBLE_ARG, 0, 0, 1.5 },
     };
 
     char buffer[100];




More information about the wine-cvs mailing list