[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Class Library (pnetlib)
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Class Library (pnetlib) branch, master, updated. d74009c50c7fa4d6a19698aa4d029ca938eb504a |
Date: |
Sun, 25 Apr 2010 11:01:54 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET Class Library (pnetlib)".
The branch, master has been updated
via d74009c50c7fa4d6a19698aa4d029ca938eb504a (commit)
from 32a628eb0d4de16e8a7754edf9bdd622ca7d413c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnetlib.git/commit/?id=d74009c50c7fa4d6a19698aa4d029ca938eb504a
commit d74009c50c7fa4d6a19698aa4d029ca938eb504a
Author: Klaus Treichel <address@hidden>
Date: Sun Apr 25 13:01:20 2010 +0200
Add tests for the System.Math.Tan method.
diff --git a/ChangeLog b/ChangeLog
index 73d681b..9b7ddd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-25 Klaus Treichel <address@hidden>
+
+ * tests/runtime/System/TestMath.cs (TestMathTanDouble): Add tests for
the
+ System.Math.Tan function.
+
2010-03-15 Klaus Treichel <address@hidden>
* System.Xml/XmlSecureResolver.cs: Added
diff --git a/tests/runtime/System/TestMath.cs b/tests/runtime/System/TestMath.cs
index d394581..f056e64 100644
--- a/tests/runtime/System/TestMath.cs
+++ b/tests/runtime/System/TestMath.cs
@@ -102,6 +102,14 @@ public class TestMath : TestCase
AssertEquals("-2.5", -2.0, Math.Round(-2.5));
}
+ public void TestMathTanDouble()
+ {
+ AssertEquals("Tan(0.25 * Math.PI)", 1.0,
Math.Round(Math.Tan(0.25 * Math.PI) * 100000000) / 100000000);
+ AssertEquals("Tan(Double.NaN)", Double.NaN,
Math.Tan(Double.NaN));
+ AssertEquals("Tan(Double.PositiveInfinity)", Double.NaN,
Math.Tan(Double.PositiveInfinity));
+ AssertEquals("Tan(Double.NegativeInfinity)", Double.NaN,
Math.Tan(Double.NegativeInfinity));
+ }
+
#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
public void TestMathRoundDoubleMidpointRounding()
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
tests/runtime/System/TestMath.cs | 8 ++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
hooks/post-receive
--
DotGNU Portable.NET Class Library (pnetlib)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Class Library (pnetlib) branch, master, updated. d74009c50c7fa4d6a19698aa4d029ca938eb504a,
Klaus Treichel <=
- Prev by Date:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 9ec4da4437815aff83067f9a9fc16da31ffea1e3
- Next by Date:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET branch, master, updated. 4ded41e7028bc0a9ecc08c6e53ad631f0b54c0d5
- Previous by thread:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 9ec4da4437815aff83067f9a9fc16da31ffea1e3
- Next by thread:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET branch, master, updated. 4ded41e7028bc0a9ecc08c6e53ad631f0b54c0d5
- Index(es):