summaryrefslogtreecommitdiffstats
path: root/helpers/path_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-29 10:14:37 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-30 18:50:09 +0100
commit4bae8b04aadd72d298bf2dd1bb1430806bf2869c (patch)
tree72532b6d9f3288ab10674c486d650e37b3249184 /helpers/path_test.go
parent0584432b078f1e3a488ad4f27f39edac0557e042 (diff)
Revert " Fix handling of taxonomy terms containing slashes"
See #4090 See #5571 This reverts commit fff132537b4094221f4f099e2251f3cda613060f.
Diffstat (limited to 'helpers/path_test.go')
-rw-r--r--helpers/path_test.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/helpers/path_test.go b/helpers/path_test.go
index a1110b094..c249a519d 100644
--- a/helpers/path_test.go
+++ b/helpers/path_test.go
@@ -36,39 +36,6 @@ import (
"github.com/spf13/viper"
)
-func TestMakeSegment(t *testing.T) {
- tests := []struct {
- input string
- expected string
- }{
- {" FOO bar ", "foo-bar"},
- {"Foo.Bar/fOO_bAr-Foo", "foo.bar-foo_bar-foo"},
- {"FOO,bar:FooBar", "foobarfoobar"},
- {"foo/BAR.HTML", "foo-bar.html"},
- {"трям/трям", "трям-трям"},
- {"은행", "은행"},
- {"Say What??", "say-what"},
- {"Your #1 Fan", "your-1-fan"},
- {"Red & Blue", "red-blue"},
- {"double//slash", "double-slash"},
- {"triple///slash", "triple-slash"},
- {"-my/way-", "my-way"},
- }
-
- for _, test := range tests {
- v := newTestCfg()
-
- l := langs.NewDefaultLanguage(v)
- p, err := NewPathSpec(hugofs.NewMem(v), l)
- require.NoError(t, err)
-
- output := p.MakeSegment(test.input)
- if output != test.expected {
- t.Errorf("Expected %#v, got %#v\n", test.expected, output)
- }
- }
-}
-
func TestMakePath(t *testing.T) {
tests := []struct {
input string