[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/server/Makefile.am te...
From: |
Bastiaan Jacques |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/server/Makefile.am te... |
Date: |
Tue, 04 Mar 2008 10:55:57 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Bastiaan Jacques <bjacques> 08/03/04 10:55:57
Modified files:
. : ChangeLog
testsuite/server: Makefile.am
Added files:
testsuite/server: AsValueTest.cpp
Log message:
* testsuite/server/AsValueTest.cpp: Quick test for isnan and
isinf.
* testsuite/server/Makefile.am: Enable AsValueTest.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5794&r2=1.5795
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/Makefile.am?cvsroot=gnash&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/AsValueTest.cpp?cvsroot=gnash&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5794
retrieving revision 1.5795
diff -u -b -r1.5794 -r1.5795
--- ChangeLog 4 Mar 2008 10:39:57 -0000 1.5794
+++ ChangeLog 4 Mar 2008 10:55:56 -0000 1.5795
@@ -1,3 +1,8 @@
+2008-03-04 Bastiaan Jacques <address@hidden>
+
+ * testsuite/server/AsValueTest.cpp: Quick test for isnan and isinf.
+ * testsuite/server/Makefile.am: Enable AsValueTest.
+
2008-03-04 Sandro Santilli <address@hidden>
* backend/: render_handler_agg.cpp, render_handler_ogl.cpp:
Index: testsuite/server/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/server/Makefile.am,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- testsuite/server/Makefile.am 21 Jan 2008 23:26:53 -0000 1.36
+++ testsuite/server/Makefile.am 4 Mar 2008 10:55:57 -0000 1.37
@@ -42,6 +42,7 @@
PropertyListTest \
as_prop_flagsTest \
DisplayListTest \
+ AsValueTest \
$(NULL)
CLEANFILES = \
@@ -102,6 +103,11 @@
$(GNASH_LIBS) \
$(NULL)
+AsValueTest_SOURCES = AsValueTest.cpp
+AsValueTest_LDADD = \
+ $(GNASH_LIBS) \
+ $(NULL)
+
TEST_DRIVERS = ../simple.exp
TEST_CASES = \
$(check_PROGRAMS) \
Index: testsuite/server/AsValueTest.cpp
===================================================================
RCS file: testsuite/server/AsValueTest.cpp
diff -N testsuite/server/AsValueTest.cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/server/AsValueTest.cpp 4 Mar 2008 10:55:57 -0000 1.1
@@ -0,0 +1,68 @@
+//
+// Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+#ifdef HAVE_CONFIG_H
+#include "gnashconfig.h"
+#endif
+
+#include "as_value.h"
+
+#include <iostream>
+#include <sstream>
+#include <cassert>
+#include <string>
+
+#include "check.h"
+
+using namespace gnash;
+
+int
+main(int /*argc*/, char** /*argv*/)
+{
+ float num = 0;
+
+ check(!isnan(num));
+
+ num /= 9999999;
+
+ check(!isnan(num));
+ check(isfinite(num));
+
+ num = std::numeric_limits<float>::quiet_NaN();
+
+ check(isnan(num));
+ check(!isfinite(num));
+
+ num = std::numeric_limits<float>::infinity();
+
+ check(!isnan(num));
+ check(!isfinite(num));
+
+ num = 1.0 / 0.0;
+
+ check(!isfinite(num));
+ check(!isnan(num));
+
+ int intgr = num;
+
+ num = intgr;
+
+ check(!isnan(num));
+ check(isfinite(num));
+
+}
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/server/Makefile.am te...,
Bastiaan Jacques <=