Author: pschweitzer
Date: Sat Nov 19 09:44:49 2011
New Revision: 54430
URL:
http://svn.reactos.org/svn/reactos?rev=54430&view=rev
Log:
[MSVCRT_APITEST]
Add more tests
Modified:
trunk/rostests/apitests/msvcrt/ieee.c
Modified: trunk/rostests/apitests/msvcrt/ieee.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/msvcrt/ieee.c?re…
==============================================================================
--- trunk/rostests/apitests/msvcrt/ieee.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/msvcrt/ieee.c [iso-8859-1] Sat Nov 19 09:44:49 2011
@@ -22,6 +22,8 @@
ok(_finite(tested.d) == FALSE, "_finite = TRUE\n");
tested.l = 0xFFF8000000000001LL;
ok(_finite(tested.d) == FALSE, "_finite = TRUE\n");
+ tested.l = 0xFFF8000000000000LL;
+ ok(_finite(tested.d) == FALSE, "_finite = TRUE\n");
tested.l = 0xFFF7FFFFFFFFFFFFLL;
ok(_finite(tested.d) == FALSE, "_finite = TRUE\n");
tested.l = 0xFFF0000000000001LL;
@@ -71,6 +73,12 @@
tested.l = 0xFFF8000000000001LL;
class = _fpclass(tested.d);
ok(class == _FPCLASS_QNAN, "class = %d\n", class);
+ tested.l = 0xFFF8000000000000LL;
+ class = _fpclass(tested.d);
+ /* Normally it has no class, but w2k3 defines it
+ * like that
+ */
+ ok(class == _FPCLASS_QNAN, "class = %d\n", class);
tested.l = 0xFFF7FFFFFFFFFFFFLL;
class = _fpclass(tested.d);
/* According to IEEE, it should be Signaling NaN, but
@@ -150,6 +158,8 @@
tested.l = 0xFFFFFFFFFFFFFFFFLL;
ok(_isnan(tested.d) == TRUE, "_isnan = FALSE\n");
tested.l = 0xFFF8000000000001LL;
+ ok(_isnan(tested.d) == TRUE, "_isnan = FALSE\n");
+ tested.l = 0xFFF8000000000000LL;
ok(_isnan(tested.d) == TRUE, "_isnan = FALSE\n");
tested.l = 0xFFF7FFFFFFFFFFFFLL;
ok(_isnan(tested.d) == TRUE, "_isnan = FALSE\n");