mirror of
				https://github.com/gohugoio/hugo.git
				synced 2025-11-03 20:14:26 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			309 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			309 B
		
	
	
	
		
			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)
 | 
						|
}
 |