gcalctool r2276 - trunk/gcalctool



Author: kniederk
Date: Tue Oct 21 08:31:49 2008
New Revision: 2276
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2276&view=rev

Log:
More unittests


Modified:
   trunk/gcalctool/unittest.c

Modified: trunk/gcalctool/unittest.c
==============================================================================
--- trunk/gcalctool/unittest.c	(original)
+++ trunk/gcalctool/unittest.c	Tue Oct 21 08:31:49 2008
@@ -120,9 +120,13 @@
 
     test("Abs(1)", "1", 0);
     test("Abs(-1)", "1", 0);
-    
+
     test("Sin(0)", "0", 0);
+    test("Sin(45) - 1/Sqrt(2)", "0", 0);
+    test("Sin(20) + Sin(-20)", "0", 0);
     test("Cos(0)", "1", 0);
+    test("Cos(45) - 1/Sqrt(2)", "0", 0);
+    test("Cos(20) - Cos(-20)", "0", 0);
     test("Tan(0)", "0", 0);
 
     test("Acos(0)", "90", 0);
@@ -140,8 +144,15 @@
 
     test("Sinh(0)", "0", 0);
     test("Sinh(10) - (e^(10)-e^(-10))/2", "0", 0);
+    test("Sinh(-10) +Sinh(10)", "0", 0);
 
     test("Cosh(-5)^2 - Sinh(-5)^2", "1", 0);
+    test("Tanh(0)", "0", 0);
+    test("Tanh(10) - Sinh(10)/Cosh(10)", "0", 0);
+
+
+    test("Atanh(0)", "0", 0);
+    test("Atanh(1/10) - 1/2*Ln(11/9)", "0", 0);
 
     v->ttype = DEG;
     test("Sin(90)", "1", 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]