From 57a4442c7ea7813def63300184688c2289b81014 Mon Sep 17 00:00:00 2001 From: zc Date: Mon, 13 Nov 2023 12:51:07 +0800 Subject: [PATCH] add more testcase to util/camel --- util_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util_test.go b/util_test.go index 1945616..891924e 100644 --- a/util_test.go +++ b/util_test.go @@ -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 {