Improve strfuncs test coverage a bit
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Jul 2010 20:52:36 +0000 (16:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Jul 2010 23:51:19 +0000 (19:51 -0400)
glib/tests/strfuncs.c

index 648f370..66768e4 100644 (file)
@@ -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);