summaryrefslogtreecommitdiffstats
path: root/metrics/metrics_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'metrics/metrics_test.go')
-rw-r--r--metrics/metrics_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/metrics/metrics_test.go b/metrics/metrics_test.go
index d28efa25e..d8c3237f8 100644
--- a/metrics/metrics_test.go
+++ b/metrics/metrics_test.go
@@ -41,8 +41,8 @@ func TestSimilarPercentage(t *testing.T) {
c.Assert(howSimilar("Totally different", "Not Same"), qt.Equals, 0)
c.Assert(howSimilar(sentence, sentenceReversed), qt.Equals, 14)
c.Assert(howSimilar(template.HTML("Hugo Rules"), template.HTML("Hugo Rules")), qt.Equals, 100)
- c.Assert(howSimilar(map[string]interface{}{"a": 32, "b": 33}, map[string]interface{}{"a": 32, "b": 33}), qt.Equals, 100)
- c.Assert(howSimilar(map[string]interface{}{"a": 32, "b": 33}, map[string]interface{}{"a": 32, "b": 34}), qt.Equals, 0)
+ c.Assert(howSimilar(map[string]any{"a": 32, "b": 33}, map[string]any{"a": 32, "b": 33}), qt.Equals, 100)
+ c.Assert(howSimilar(map[string]any{"a": 32, "b": 33}, map[string]any{"a": 32, "b": 34}), qt.Equals, 0)
}
type testStruct struct {