woodpecker/vendor/github.com/Bugagazavr/go-gitlab-client/util_test.go

12 lines
248 B
Go
Raw Normal View History

2015-07-26 23:25:20 +00:00
package gogitlab
import (
2015-09-30 01:21:17 +00:00
"github.com/stretchr/testify/assert"
2015-07-26 23:25:20 +00:00
"testing"
)
func TestParameterEncoding(t *testing.T) {
assert.Equal(t, encodeParameter("namespace/project"), "namespace%2Fproject")
assert.Equal(t, encodeParameter("14"), "14")
}