Skip to content

Commit

Permalink
Merge pull request #30 from zc2638/test/util
Browse files Browse the repository at this point in the history
add more testcase to util/camel
  • Loading branch information
zc2638 authored Nov 13, 2023
2 parents eb4ba57 + 57a4442 commit f9ace56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ func TestColonPath(t *testing.T) {

func TestCamel(t *testing.T) {
assert.Equal(t, "HelloWorld", camel("hello/world"))
assert.Equal(t, "UsersUser", camel("/users/{user}"))
assert.Equal(t, "HelloWorld", camel("/hello/world"))
assert.Equal(t, "HelloWorld", camel("hello/{world}"))
assert.Equal(t, "HelloWorld", camel("/hello/{world}"))
}

func getPtrString(t reflect.Type) string {
Expand Down

0 comments on commit f9ace56

Please sign in to comment.