Skip to content

Commit 1adf2db

Browse files
committed
test(java): test _java_find_sourcepath
1 parent ec73841 commit 1adf2db

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/t/test_java.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ def test_5(self, completion):
4747
@pytest.mark.complete("java -jar java/")
4848
def test_6(self, completion):
4949
assert completion == "a/ bashcomp.jar bashcomp.war".split()
50+
51+
@pytest.mark.complete("javadoc -sourcepath java/a:java/a/c ")
52+
def test_sourcepath_1(self, completion):
53+
"""sourcepath should be split by `:`"""
54+
assert completion == "c"
55+
56+
@pytest.mark.complete("javadoc -sourcepath java/?:java/x ")
57+
def test_sourcepath_2(self, completion):
58+
"""pathname expansion should not happen after splitting the argument by
59+
`:`"""
60+
assert not completion

0 commit comments

Comments
 (0)