gkeyfile: Test that whitespace is allowed after numbers

Test that whitespace is allowed after numbers - this was fixed in
commit 7a45dde4fe.
This commit is contained in:
Robert Ancell 2015-10-20 15:46:01 +13:00
parent 975cb91085
commit 51ed0f0405

View File

@ -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);