converted path 2 filepath

This commit is contained in:
Joel Scoble
2014-11-06 10:52:01 -06:00
committed by spf13
parent 7fd348cf79
commit 2c51bba0c3
3 changed files with 20 additions and 20 deletions

View File

@@ -2,7 +2,7 @@ package hugolib
import (
"html/template"
"path"
"path/filepath"
"strings"
"testing"
"time"
@@ -520,11 +520,11 @@ func L(s ...string) []string {
func TestLayoutOverride(t *testing.T) {
var (
path_content_two_dir = path.Join("content", "dub", "sub", "file1.md")
path_content_one_dir = path.Join("content", "gub", "file1.md")
path_content_no_dir = path.Join("content", "file1")
path_one_directory = path.Join("fub", "file1.md")
path_no_directory = path.Join("file1.md")
path_content_two_dir = filepath.Join("content", "dub", "sub", "file1.md")
path_content_one_dir = filepath.Join("content", "gub", "file1.md")
path_content_no_dir = filepath.Join("content", "file1")
path_one_directory = filepath.Join("fub", "file1.md")
path_no_directory = filepath.Join("file1.md")
)
tests := []struct {
content string