mirror of
https://github.com/danog/gojekyll.git
synced 2024-11-27 13:24:41 +01:00
13 lines
203 B
Go
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"))
|
|
}
|