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

12 lines
293 B
Go
Raw Normal View History

2015-07-26 23:25:20 +00:00
package gogitlab
import (
2015-08-06 16:22:31 +00:00
"github.com/drone/drone/Godeps/_workspace/src/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")
}