[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
- Previous message: [grisbi-cvs] grisbi/src gsb_real.c,1.36,1.37
- Next message: [grisbi-cvs] grisbi/src barre_outils.c, 1.127, 1.128 gsb_account_property.c, 1.38, 1.39 gsb_account_property.h, 1.4, 1.5 gsb_bank.c, 1.23, 1.24 gsb_data_currency.c, 1.18, 1.19 gsb_scheduler_list.c, 1.65, 1.66
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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()
- Previous message: [grisbi-cvs] grisbi/src gsb_real.c,1.36,1.37
- Next message: [grisbi-cvs] grisbi/src barre_outils.c, 1.127, 1.128 gsb_account_property.c, 1.38, 1.39 gsb_account_property.h, 1.4, 1.5 gsb_bank.c, 1.23, 1.24 gsb_data_currency.c, 1.18, 1.19 gsb_scheduler_list.c, 1.65, 1.66
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list