Implement the Files flag and add some tests
This commit is contained in:
@@ -36,7 +36,7 @@ func TestHomeDirectoryPatternExpansion(t *testing.T) {
|
||||
|
||||
// Test the pattern with ~/ that should match the file
|
||||
pattern := "~/synclib_test/testhome.csv"
|
||||
links, err := ExpandPattern(pattern, testDir, "target.csv")
|
||||
links, err := ExpandPattern(pattern, testDir, "target.csv", false)
|
||||
|
||||
// This should work but currently fails due to the bug
|
||||
assert.NoError(t, err)
|
||||
@@ -46,4 +46,4 @@ func TestHomeDirectoryPatternExpansion(t *testing.T) {
|
||||
assert.Contains(t, links[0].Source, "testhome.csv")
|
||||
assert.Equal(t, "target.csv", links[0].Target)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user