mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-31 18:06:14 +01:00
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:
parent
975cb91085
commit
51ed0f0405
@ -620,6 +620,8 @@ test_number (void)
|
|||||||
"key4=2324431\n"
|
"key4=2324431\n"
|
||||||
"key5=-2324431\n"
|
"key5=-2324431\n"
|
||||||
"key6=000111\n"
|
"key6=000111\n"
|
||||||
|
"key7= 1\n"
|
||||||
|
"key8=1 \n"
|
||||||
"dkey1=000111\n"
|
"dkey1=000111\n"
|
||||||
"dkey2=145.45\n"
|
"dkey2=145.45\n"
|
||||||
"dkey3=-3453.7\n"
|
"dkey3=-3453.7\n"
|
||||||
@ -641,6 +643,8 @@ test_number (void)
|
|||||||
check_integer_value (keyfile, "valid", "key4", 2324431);
|
check_integer_value (keyfile, "valid", "key4", 2324431);
|
||||||
check_integer_value (keyfile, "valid", "key5", -2324431);
|
check_integer_value (keyfile, "valid", "key5", -2324431);
|
||||||
check_integer_value (keyfile, "valid", "key6", 111);
|
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", "dkey1", 111.0);
|
||||||
check_double_value (keyfile, "valid", "dkey2", 145.45);
|
check_double_value (keyfile, "valid", "dkey2", 145.45);
|
||||||
check_double_value (keyfile, "valid", "dkey3", -3453.7);
|
check_double_value (keyfile, "valid", "dkey3", -3453.7);
|
||||||
|
Loading…
Reference in New Issue
Block a user