Merge pull request #102 from tsu-ku-ne/master
Modify test to relate to function name
This commit is contained in:
commit
281d36d28b
|
@ -50,7 +50,8 @@ func TestFindFilesWithSymlinks(t *testing.T) {
|
||||||
t.Errorf("Symlink source and target should have the same number of assets. Expected %d got %d", len(tocTarget), len(tocSrc))
|
t.Errorf("Symlink source and target should have the same number of assets. Expected %d got %d", len(tocTarget), len(tocSrc))
|
||||||
} else {
|
} else {
|
||||||
for i, _ := range tocSrc {
|
for i, _ := range tocSrc {
|
||||||
targetFunc := strings.TrimPrefix(tocTarget[i].Func, "symlinktarget_")
|
targetFunc := strings.TrimPrefix(tocTarget[i].Func, "symlinktarget")
|
||||||
|
targetFunc = strings.ToLower(targetFunc[:1]) + targetFunc[1:]
|
||||||
if tocSrc[i].Func != targetFunc {
|
if tocSrc[i].Func != targetFunc {
|
||||||
t.Errorf("Symlink source and target produced different function lists. Expected %s to be %s", targetFunc, tocSrc[i].Func)
|
t.Errorf("Symlink source and target produced different function lists. Expected %s to be %s", targetFunc, tocSrc[i].Func)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user