Skip to content

Commit 7be99b5

Browse files
committed
Add missing test branch
1 parent 9aee5d9 commit 7be99b5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/test/java/org/apache/commons/cli/UtilTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2323
import org.junit.jupiter.api.Test;
2424

2525
public class UtilTest {
26+
2627
@Test
2728
public void testStripLeadingAndTrailingQuotes() {
29+
assertNull(Util.stripLeadingAndTrailingQuotes(null));
30+
assertEquals("", Util.stripLeadingAndTrailingQuotes(""));
2831
assertEquals("foo", Util.stripLeadingAndTrailingQuotes("\"foo\""));
2932
assertEquals("foo \"bar\"", Util.stripLeadingAndTrailingQuotes("foo \"bar\""));
3033
assertEquals("\"foo\" bar", Util.stripLeadingAndTrailingQuotes("\"foo\" bar"));

0 commit comments

Comments
 (0)