[glib] gkeyfile: Test that whitespace is allowed after numbers
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gkeyfile: Test that whitespace is allowed after numbers
- Date: Wed, 21 Oct 2015 02:32:10 +0000 (UTC)
commit 51ed0f040505914d9be09f01b2b567d69df57ae4
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Oct 20 15:46:01 2015 +1300
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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/keyfile.c b/glib/tests/keyfile.c
index 0eb734b..4643084 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]