[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9617: We use our own isNaN() now, n
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9617: We use our own isNaN() now, not any non-standard isnan (whether or not it |
Date: |
Mon, 18 Aug 2008 22:12:16 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9617
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Mon 2008-08-18 22:12:16 +0200
message:
We use our own isNaN() now, not any non-standard isnan (whether or not it
is in namespace std), and that it what we should test.
modified:
testsuite/libcore.all/AsValueTest.cpp
=== modified file 'testsuite/libcore.all/AsValueTest.cpp'
--- a/testsuite/libcore.all/AsValueTest.cpp 2008-08-18 19:09:16 +0000
+++ b/testsuite/libcore.all/AsValueTest.cpp 2008-08-18 20:12:16 +0000
@@ -31,7 +31,6 @@
#include "utility.h"
-using namespace std;
using namespace gnash;
int
@@ -41,33 +40,33 @@
std::cout << "sizeof(as_value): " << (sizeof(as_value)) << std::endl;
- check(!isnan(num));
+ check(!isNaN(num));
num /= 9999999;
- check(!isnan(num));
+ check(!isNaN(num));
check(utility::isFinite(num));
num = std::numeric_limits<float>::quiet_NaN();
- check(isnan(num));
+ check(isNaN(num));
check(!utility::isFinite(num));
num = std::numeric_limits<float>::infinity();
- check(!isnan(num));
+ check(!isNaN(num));
check(!utility::isFinite(num));
num = 1.0 / 0.0;
check(!utility::isFinite(num));
- check(!isnan(num));
+ check(!isNaN(num));
int intgr = num;
num = intgr;
- check(!isnan(num));
+ check(!isNaN(num));
check(utility::isFinite(num));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9617: We use our own isNaN() now, not any non-standard isnan (whether or not it,
Benjamin Wolsey <=