mirror of https://github.com/nmasse-itix/liche.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
326 B
17 lines
326 B
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestIsMarkupFile(t *testing.T) {
|
|
for _, f := range []string{"foo.md", "foo.html", "foo.htm", "foo/bar.md"} {
|
|
assert.True(t, isMarkupFile(f))
|
|
}
|
|
|
|
for _, f := range []string{"foo", "foo.m", "bar/foo"} {
|
|
assert.False(t, isMarkupFile(f))
|
|
}
|
|
}
|
|
|