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 <[email protected]>
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  <[email protected]>
+
+       * tests/runtime/System/TestMath.cs (TestMathTanDouble): Add tests for 
the
+       System.Math.Tan function.
+
 2010-03-15  Klaus Treichel  <[email protected]>
 
        * 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)


_______________________________________________
dotgnu-pnet-commits mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/dotgnu-pnet-commits

Reply via email to