We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aee5d9 commit 7be99b5Copy full SHA for 7be99b5
1 file changed
src/test/java/org/apache/commons/cli/UtilTest.java
@@ -23,8 +23,11 @@ Licensed to the Apache Software Foundation (ASF) under one or more
23
import org.junit.jupiter.api.Test;
24
25
public class UtilTest {
26
+
27
@Test
28
public void testStripLeadingAndTrailingQuotes() {
29
+ assertNull(Util.stripLeadingAndTrailingQuotes(null));
30
+ assertEquals("", Util.stripLeadingAndTrailingQuotes(""));
31
assertEquals("foo", Util.stripLeadingAndTrailingQuotes("\"foo\""));
32
assertEquals("foo \"bar\"", Util.stripLeadingAndTrailingQuotes("foo \"bar\""));
33
assertEquals("\"foo\" bar", Util.stripLeadingAndTrailingQuotes("\"foo\" bar"));
0 commit comments