[grisbi-cvs] grisbi/src gsb_real_cunit.c,1.2,1.3

Pierre Biava pbiava at users.sourceforge.net
Tue May 12 22:46:00 CEST 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2485

Modified Files:
	gsb_real_cunit.c 
Log Message:
correction valeurs du test

Index: gsb_real_cunit.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_real_cunit.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gsb_real_cunit.c	12 May 2009 04:29:31 -0000	1.2
+++ gsb_real_cunit.c	12 May 2009 20:45:57 -0000	1.3
@@ -51,16 +51,13 @@
 
 void gsb_real_cunit__gsb_real_get_from_string()
 {
-     //TODO make gsb_real_get_from_string testable without this
-	//~ setlocale ( LC_MONETARY, "C" );
-
     gsb_real val = gsb_real_get_from_string("123,45");
-    CU_ASSERT_EQUAL(123, val.mantissa);
+    CU_ASSERT_EQUAL(12345, val.mantissa);
     CU_ASSERT_EQUAL(2, val.exponent);
 
-    val = gsb_real_get_from_string("21 000 000");
-    CU_ASSERT_EQUAL(2100000000, val.mantissa);
-    CU_ASSERT_EQUAL(2, val.exponent);
+    val = gsb_real_get_from_string("21000000");
+    CU_ASSERT_EQUAL(21000000, val.mantissa);
+    CU_ASSERT_EQUAL(0, val.exponent);
 }
 
 void gsb_real_cunit__gsb_real_raw_format_string()



More information about the cvs mailing list