diff options
author | Dave Borowitz <dborowitz@google.com> | 2017-12-21 09:04:56 -0500 |
---|---|---|
committer | Dave Borowitz <dborowitz@google.com> | 2017-12-21 09:30:52 -0500 |
commit | e76a070e6715fac0abb9f1b133b57496b35f88d3 (patch) | |
tree | 013ef5fd44ba3e6a0cfa0a969a9f4f8a594a2ec7 /org.eclipse.jgit.test/tst/org/eclipse/jgit | |
parent | be224f8d4c6afb9603c4f824e91e639c9f99cc7a (diff) | |
download | jgit-e76a070e6715fac0abb9f1b133b57496b35f88d3.tar.gz jgit-e76a070e6715fac0abb9f1b133b57496b35f88d3.zip |
ConfigTest: Add some additional comment parsing tests
Change-Id: I0f1df93bd1ceeb847771ea6484f9de539e8c177b
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
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 |