[glib] Improve strfuncs test coverage a bit
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Improve strfuncs test coverage a bit
- Date: Fri, 30 Jul 2010 23:58:04 +0000 (UTC)
commit 0e48b7ea7c436dde8e1e3d432a4c0dd6da7055fa
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jul 27 16:52:36 2010 -0400
Improve strfuncs test coverage a bit
glib/tests/strfuncs.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/strfuncs.c b/glib/tests/strfuncs.c
index 648f370..66768e4 100644
--- a/glib/tests/strfuncs.c
+++ b/glib/tests/strfuncs.c
@@ -945,6 +945,11 @@ test_strtod (void)
check_strtod_string ("5.4", 5.4, TRUE, 3);
check_strtod_string ("5.4,5.5", 5.4, TRUE, 3);
check_strtod_string ("5,4", 5.0, TRUE, 1);
+ check_strtod_string ("0xa.b", 10.6875, TRUE, 5);
+ check_strtod_string ("0xa.bP3", 85.5, TRUE, 7);
+ check_strtod_string ("0xa.bp+3", 85.5, TRUE, 8);
+ check_strtod_string ("0xa.bp-2", 2.671875, TRUE, 8);
+ check_strtod_string ("0xA.BG", 10.6875, TRUE, 5);
/* the following are for #156421 */
check_strtod_string ("1e1", 1e1, FALSE, 0);
check_strtod_string ("NAN", our_nan, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]