1package name
2
3import (
4	"testing"
5
6	"github.com/stretchr/testify/require"
7)
8
9func Test_Ident_Key(t *testing.T) {
10	table := map[string]string{
11		"Foo/bar/baz":   "foo/bar/baz",
12		"Foo\\bar\\baz": "foo/bar/baz",
13	}
14
15	for in, out := range table {
16		t.Run(in, func(st *testing.T) {
17			r := require.New(st)
18			r.Equal(out, Key(in))
19		})
20	}
21}
22