Skip to content

Commit 5df3eef

Browse files
committed
fix: [fixup] test cases
1 parent 0ef11ca commit 5df3eef

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

test/fixtures/make/test2/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,19 @@ all: abc/xyz
55
abc/xyz 123/xaa 123/xbb:
66
mkdir -p $(@:/%=)
77
date > $@
8+
9+
sub1test/bar/alpha sub1test/bar/beta:
10+
mkdir -p $(@:/%=)
11+
date > $@
12+
13+
sub2test/bar/alpha:
14+
mkdir -p $(@:/%=)
15+
date > $@
16+
17+
sub3test/bar/alpha sub3test/foo/alpha:
18+
mkdir -p $(@:/%=)
19+
date > $@
20+
21+
sub4test/bar/alpha sub4test/bar/beta sub4test2/foo/gamma:
22+
mkdir -p $(@:/%=)
23+
date > $@

test/t/test_make.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,19 @@ def test_github_issue_544_3(self, bash):
6666
def test_github_issue_544_4(self, bash):
6767
completion = assert_complete(bash, "make 123/xa")
6868
assert completion == "a"
69+
70+
def test_subdir_1(self, bash):
71+
completion = assert_complete(bash, "make sub1")
72+
assert completion == "test/bar/"
73+
74+
def test_subdir_2(self, bash):
75+
completion = assert_complete(bash, "make sub2")
76+
assert completion == "test/bar/alpha"
77+
78+
def test_subdir_3(self, bash):
79+
completion = assert_complete(bash, "make sub3")
80+
assert completion == "test/"
81+
82+
def test_subdir_4(self, bash):
83+
completion = assert_complete(bash, "make sub4")
84+
assert completion == "sub4test/bar/ sub4test2/foo/gamma".split()

0 commit comments

Comments
 (0)