From 51ed0f040505914d9be09f01b2b567d69df57ae4 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 20 Oct 2015 15:46:01 +1300 Subject: [PATCH] gkeyfile: Test that whitespace is allowed after numbers Test that whitespace is allowed after numbers - this was fixed in commit 7a45dde4fe64b4f6c6d3ebc54dfb54d106290e9d. --- glib/tests/keyfile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glib/tests/keyfile.c b/glib/tests/keyfile.c index 0eb734b75..464308438 100644 --- a/glib/tests/keyfile.c +++ b/glib/tests/keyfile.c @@ -620,6 +620,8 @@ test_number (void) "key4=2324431\n" "key5=-2324431\n" "key6=000111\n" + "key7= 1\n" + "key8=1 \n" "dkey1=000111\n" "dkey2=145.45\n" "dkey3=-3453.7\n" @@ -641,6 +643,8 @@ test_number (void) check_integer_value (keyfile, "valid", "key4", 2324431); check_integer_value (keyfile, "valid", "key5", -2324431); check_integer_value (keyfile, "valid", "key6", 111); + check_integer_value (keyfile, "valid", "key7", 1); + check_integer_value (keyfile, "valid", "key8", 1); check_double_value (keyfile, "valid", "dkey1", 111.0); check_double_value (keyfile, "valid", "dkey2", 145.45); check_double_value (keyfile, "valid", "dkey3", -3453.7);