]> source.dussan.org Git - jgit.git/commitdiff
ConfigTest: Add some additional comment parsing tests 94/114594/2
authorDave Borowitz <dborowitz@google.com>
Thu, 21 Dec 2017 14:04:56 +0000 (09:04 -0500)
committerDave Borowitz <dborowitz@google.com>
Thu, 21 Dec 2017 14:30:52 +0000 (09:30 -0500)
Change-Id: I0f1df93bd1ceeb847771ea6484f9de539e8c177b

org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java

index 2609f6745ea102400e55b52120081efdc74d1b14..fb1ee8cadb13ae6139ba10cf581b196fc3523d44 100644 (file)
@@ -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