aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser/pageparser/pagelexer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/pageparser/pagelexer_test.go')
-rw-r--r--parser/pageparser/pagelexer_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/parser/pageparser/pagelexer_test.go b/parser/pageparser/pagelexer_test.go
index 5c85df017..70def3091 100644
--- a/parser/pageparser/pagelexer_test.go
+++ b/parser/pageparser/pagelexer_test.go
@@ -19,11 +19,11 @@ import (
"github.com/stretchr/testify/require"
)
-func TestMinPositiveIndex(t *testing.T) {
+func TestMinIndex(t *testing.T) {
assert := require.New(t)
- assert.Equal(1, minPositiveIndex(4, 1, 2, 3))
- assert.Equal(2, minPositiveIndex(4, 0, -2, 2, 5))
- assert.Equal(-1, minPositiveIndex())
- assert.Equal(-1, minPositiveIndex(-2, -3))
+ assert.Equal(1, minIndex(4, 1, 2, 3))
+ assert.Equal(0, minIndex(4, 0, -2, 2, 5))
+ assert.Equal(-1, minIndex())
+ assert.Equal(-1, minIndex(-2, -3))
}