Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
Modify test to relate to function name
Browse files Browse the repository at this point in the history
  • Loading branch information
oda committed Jul 16, 2015
1 parent 564900b commit 0e7bf08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion convert_test.go
Expand Up @@ -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))
} else {
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 {
t.Errorf("Symlink source and target produced different function lists. Expected %s to be %s", targetFunc, tocSrc[i].Func)
}
Expand Down

0 comments on commit 0e7bf08

Please sign in to comment.