From 0e7bf08e9104f9694af62e25ccd3fe32a57fafe5 Mon Sep 17 00:00:00 2001 From: oda Date: Thu, 16 Jul 2015 10:08:02 +0900 Subject: [PATCH] Modify test to relate to function name --- convert_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convert_test.go b/convert_test.go index 5908adc..f0a19ca 100644 --- a/convert_test.go +++ b/convert_test.go @@ -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) }