1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-27 13:24:41 +01:00
gojekyll/helpers/pathname_test.go
2017-06-22 18:26:55 -04:00

13 lines
203 B
Go

package helpers
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestTrimExt(t *testing.T) {
require.Equal(t, "/a/b", TrimExt("/a/b.c"))
require.Equal(t, "/a/b", TrimExt("/a/b"))
}