Fix broken test
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 21 Jul 2015 19:12:03 +0000 (21:12 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 21 Jul 2015 19:12:03 +0000 (21:12 +0200)
hugolib/pageSort_test.go

index 18b16bb0c92001899ddb94f156525320c76dcc28..cef5c608562034e75607f4958b15a40c639638dc 100644 (file)
@@ -15,7 +15,7 @@ func TestPageSortReverse(t *testing.T) {
        assert.Equal(t, 9, p[9].FuzzyWordCount)
        p = p.Reverse()
        assert.Equal(t, 9, p[0].FuzzyWordCount)
-       assert.Equal(t, 1, p[9].FuzzyWordCount)
+       assert.Equal(t, 0, p[9].FuzzyWordCount)
 }
 
 func BenchmarkSortByWeightAndReverse(b *testing.B) {