From 9f8e86524a31235006492c7add9a4b5ad99bd51a Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 12 Dec 2018 01:26:56 +0900 Subject: [PATCH] add a lot of dotted keys to test_lex --- tests/test_lex_key_comment.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_lex_key_comment.cpp b/tests/test_lex_key_comment.cpp index 2598c64..be4b176 100644 --- a/tests/test_lex_key_comment.cpp +++ b/tests/test_lex_key_comment.cpp @@ -32,7 +32,15 @@ BOOST_AUTO_TEST_CASE(test_dotted_key) { TOML11_TEST_LEX_ACCEPT(lex_key, "physical.color", "physical.color"); TOML11_TEST_LEX_ACCEPT(lex_key, "physical.shape", "physical.shape"); + TOML11_TEST_LEX_ACCEPT(lex_key, "x.y", "x.y"); + TOML11_TEST_LEX_ACCEPT(lex_key, "x . y", "x . y"); + TOML11_TEST_LEX_ACCEPT(lex_key, "x.y.z", "x.y.z"); + TOML11_TEST_LEX_ACCEPT(lex_key, "x. y .z", "x. y .z"); + TOML11_TEST_LEX_ACCEPT(lex_key, "x .y. z", "x .y. z"); + TOML11_TEST_LEX_ACCEPT(lex_key, "x . y . z", "x . y . z"); TOML11_TEST_LEX_ACCEPT(lex_key, "x.y.z.w", "x.y.z.w"); + TOML11_TEST_LEX_ACCEPT(lex_key, "x. y .z. w", "x. y .z. w"); + TOML11_TEST_LEX_ACCEPT(lex_key, "x . y . z . w", "x . y . z . w"); TOML11_TEST_LEX_ACCEPT(lex_key, "site.\"google.com\"", "site.\"google.com\""); }