From 0e48b7ea7c436dde8e1e3d432a4c0dd6da7055fa Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 27 Jul 2010 16:52:36 -0400 Subject: [PATCH] Improve strfuncs test coverage a bit --- glib/tests/strfuncs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/glib/tests/strfuncs.c b/glib/tests/strfuncs.c index 648f37050..66768e4e6 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);