Skip to content

Commit 0ae5fb0

Browse files
committed
add tests file for utils
1 parent 827d5b9 commit 0ae5fb0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

utils/strings_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package utils
2+
3+
import (
4+
"fmt"
5+
"testing"
6+
)
7+
8+
func TestToLower(t *testing.T) {
9+
t.Parallel()
10+
res := ToLower("MY/NAME/IS/:PARAM/*")
11+
res = ToLower("1MY/NAME/IS/:PARAM/*")
12+
res = ToLower("/MY2/NAME/IS/:PARAM/*")
13+
res = ToLower("/MY3/NAME/IS/:PARAM/*")
14+
res = ToLower("/MY4/NAME/IS/:PARAM/*")
15+
16+
fmt.Println(res)
17+
}

0 commit comments

Comments
 (0)