gcalctool r2376 - trunk/gcalctool
- From: rancell svn gnome org
- To: svn-commits-list gnome org
- Subject: gcalctool r2376 - trunk/gcalctool
- Date: Sun, 15 Feb 2009 08:57:44 +0000 (UTC)
Author: rancell
Date: Sun Feb 15 08:57:44 2009
New Revision: 2376
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2376&view=rev
Log:
Fix up failing unittests
Modified:
trunk/gcalctool/unittest.c
Modified: trunk/gcalctool/unittest.c
==============================================================================
--- trunk/gcalctool/unittest.c (original)
+++ trunk/gcalctool/unittest.c Sun Feb 15 08:57:44 2009
@@ -43,7 +43,7 @@
return;
}
- mp_cast_to_string(result_str, MAXLINE, result, basevals[v->base], 100);
+ mp_cast_to_string(result_str, MAXLINE, result, basevals[v->base], 10);
if(strcmp(result_str, expected) != 0)
printf("FAIL: '%s' -> '%s', expected '%s'\n", expression, result_str, expected);
else
@@ -126,6 +126,7 @@
test("Ln(e^1)", "1", 0);
+ v->ttype = DEG;
test("Sin(0)", "0", 0);
test("Sin(45) - 1/Sqrt(2)", "0", 0);
test("Sin(20) + Sin(-20)", "0", 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]