From 6844355a928b60ffb1006e6b1d9f8af7b44647d5 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 18 Jun 2023 17:41:38 +0200 Subject: Imported and modified evcli's api client code --- external/evcli/url_test.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 external/evcli/url_test.go (limited to 'external/evcli/url_test.go') 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()) +} -- cgit v1.2.3