From e76a070e6715fac0abb9f1b133b57496b35f88d3 Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Thu, 21 Dec 2017 09:04:56 -0500 Subject: [PATCH] ConfigTest: Add some additional comment parsing tests Change-Id: I0f1df93bd1ceeb847771ea6484f9de539e8c177b --- .../tst/org/eclipse/jgit/lib/ConfigTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java index 2609f6745e..fb1ee8cadb 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java @@ -1025,6 +1025,11 @@ public class ConfigTest { assertEquals("baz", parseEscapedValue("baz # comment")); assertEquals("baz", parseEscapedValue("baz " + WS + " ; comment")); assertEquals("baz", parseEscapedValue("baz " + WS + " # comment")); + + assertEquals("baz ", parseEscapedValue("\"baz \"; comment")); + assertEquals("baz ", parseEscapedValue("\"baz \"# comment")); + assertEquals("baz ", parseEscapedValue("\"baz \" ; comment")); + assertEquals("baz ", parseEscapedValue("\"baz \" # comment")); } @Test -- 2.39.5