mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
helpers: Remove unusded WordCount
This commit is contained in:
@@ -16,7 +16,6 @@ package helpers
|
||||
import (
|
||||
"bytes"
|
||||
"html/template"
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -460,13 +459,3 @@ func BenchmarkTotalWordsOld(b *testing.B) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestWordCount(t *testing.T) {
|
||||
testString := "Two, Words!"
|
||||
expectedMap := map[string]int{"Two,": 1, "Words!": 1}
|
||||
actualMap := WordCount(testString)
|
||||
|
||||
if !reflect.DeepEqual(expectedMap, actualMap) {
|
||||
t.Errorf("Actual Map (%v) does not equal expected (%v)", actualMap, expectedMap)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user