aboutsummaryrefslogtreecommitdiff
path: root/external/evcli/url_test.go
blob: aa13281a95b1efadb1beba44b91137c1c4bf8b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package evcli

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestNewURL(t *testing.T) {
	assert := assert.New(t)

	assert.Equal("/",
		NewURL().String())

	assert.Equal("/a",
		NewURL("a").String())

	assert.Equal("/a/bcd/ef",
		NewURL("a", "bcd", "ef").String())

	assert.Equal("/a/b%20c/e%2Ff",
		NewURL("a", "b c", "e/f").String())
}