ref: fd5cf9ac8d9c8587f2ac2f5a58c4b3bcd52f4896
dir: /commands/new_test.go/
package commands
import (
"github.com/stretchr/testify/assert"
"path/filepath"
"testing"
)
// Issue #1133
func TestNewContentPathSectionWithForwardSlashes(t *testing.T) {
p, s := newContentPathSection("/post/new.md")
assert.Equal(t, filepath.FromSlash("/post/new.md"), p)
assert.Equal(t, "post", s)
}