ref: 2a404752355cbd322aa89d2f8660fa6e9dbd3d3e
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) }