Skip to content

Commit

Permalink
fix: [fixup] test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 19, 2022
1 parent 0ef11ca commit 5df3eef
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/fixtures/make/test2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,19 @@ all: abc/xyz
abc/xyz 123/xaa 123/xbb:
mkdir -p $(@:/%=)
date > $@

sub1test/bar/alpha sub1test/bar/beta:
mkdir -p $(@:/%=)
date > $@

sub2test/bar/alpha:
mkdir -p $(@:/%=)
date > $@

sub3test/bar/alpha sub3test/foo/alpha:
mkdir -p $(@:/%=)
date > $@

sub4test/bar/alpha sub4test/bar/beta sub4test2/foo/gamma:
mkdir -p $(@:/%=)
date > $@
16 changes: 16 additions & 0 deletions test/t/test_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,19 @@ def test_github_issue_544_3(self, bash):
def test_github_issue_544_4(self, bash):
completion = assert_complete(bash, "make 123/xa")
assert completion == "a"

def test_subdir_1(self, bash):
completion = assert_complete(bash, "make sub1")
assert completion == "test/bar/"

def test_subdir_2(self, bash):
completion = assert_complete(bash, "make sub2")
assert completion == "test/bar/alpha"

def test_subdir_3(self, bash):
completion = assert_complete(bash, "make sub3")
assert completion == "test/"

def test_subdir_4(self, bash):
completion = assert_complete(bash, "make sub4")
assert completion == "sub4test/bar/ sub4test2/foo/gamma".split()

0 comments on commit 5df3eef

Please sign in to comment.