gcalctool r2464 - trunk/gcalctool



Author: rancell
Date: Mon Mar 30 07:27:27 2009
New Revision: 2464
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2464&view=rev

Log:
Added test for exponential ordering

Modified:
   trunk/gcalctool/unittest.c

Modified: trunk/gcalctool/unittest.c
==============================================================================
--- trunk/gcalctool/unittest.c	(original)
+++ trunk/gcalctool/unittest.c	Mon Mar 30 07:27:27 2009
@@ -98,10 +98,14 @@
     
     test("100%", "1", 0);
     test("1%", "0.01", 0);
+
     test("2^2", "4", 0);
     test("2^-1", "0.5", 0);
+    test("2^(-1)", "0.5", 0);    
     test("-10^2", "-100", 0);
     test("(-10)^2", "100", 0);
+    test("4^3^2", "262144", 0);
+
     test("0!", "1", 0);
     test("1!", "1", 0);
     test("5!", "120", 0);



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