From 1c89f56d37c4485aeedd5edb2220c1b831537811 Mon Sep 17 00:00:00 2001 From: Timur Batyrshin Date: Mon, 21 Jul 2014 13:29:22 +0400 Subject: [PATCH 1/2] inifiles with trailing comments are broken --- lenses/tests/test_inifile.aug | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lenses/tests/test_inifile.aug b/lenses/tests/test_inifile.aug index 873e1fdf7..ab28daba5 100644 --- a/lenses/tests/test_inifile.aug +++ b/lenses/tests/test_inifile.aug @@ -39,6 +39,7 @@ test_ace = value # end of line comment test_ace = test_ace = \"value with spaces\" ; comment with colon +test_ace = value_with_trailing_comment # " (* Test: lns_ace @@ -52,6 +53,8 @@ test_ace = \"value with spaces\" { "test_ace" } { "test_ace" = "value with spaces" } { "#comment" = "comment with colon" } + { "test_ace" = "value_with_trailing_comment" + { "#comment" } } {} } test lns_ace put conf_ace after @@ -62,6 +65,7 @@ test_ace = value # end of line comment test_ace = test_ace = \"value with spaces\" ; comment with colon +test_ace = value_with_trailing_comment # foo=yes " @@ -372,6 +376,8 @@ ticket_243 = \"value1;value2#value3\" # end of line comment { "test_ace" } { "test_ace" = "value with spaces" } { "#comment" = "comment with colon" } + { "test_ace" = "value_with_trailing_comment" + { "#comment" } } { } } @@ -388,6 +394,8 @@ ticket_243 = \"value1;value2#value3\" # end of line comment { "test_ace" } { "test_ace" = "value with spaces" } { "#comment" = "comment with colon" } + { "test_ace" = "value_with_trailing_comment" + { "#comment" } } { } } From 3f469571ce2cb73016f31d2bae9b39d23a180470 Mon Sep 17 00:00:00 2001 From: Timur Batyrshin Date: Mon, 21 Jul 2014 16:39:28 +0400 Subject: [PATCH 2/2] fix tree to match current version --- lenses/tests/test_inifile.aug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lenses/tests/test_inifile.aug b/lenses/tests/test_inifile.aug index ab28daba5..7d1aaa109 100644 --- a/lenses/tests/test_inifile.aug +++ b/lenses/tests/test_inifile.aug @@ -54,7 +54,7 @@ test_ace = value_with_trailing_comment # { "test_ace" = "value with spaces" } { "#comment" = "comment with colon" } { "test_ace" = "value_with_trailing_comment" - { "#comment" } } + {} } {} } test lns_ace put conf_ace after @@ -377,7 +377,7 @@ ticket_243 = \"value1;value2#value3\" # end of line comment { "test_ace" = "value with spaces" } { "#comment" = "comment with colon" } { "test_ace" = "value_with_trailing_comment" - { "#comment" } } + {} } { } } @@ -395,7 +395,7 @@ ticket_243 = \"value1;value2#value3\" # end of line comment { "test_ace" = "value with spaces" } { "#comment" = "comment with colon" } { "test_ace" = "value_with_trailing_comment" - { "#comment" } } + {} } { } }