aboutsummaryrefslogtreecommitdiff
path: root/external/evcli/url_test.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--external/evcli/url_test.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/external/evcli/url_test.go b/external/evcli/url_test.go
new file mode 100644
index 0000000..aa13281
--- /dev/null
+++ b/external/evcli/url_test.go
@@ -0,0 +1,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())
+}