Skip to content

Commit 037e3a2

Browse files
committed
func for getting style options tested
1 parent d5b67e9 commit 037e3a2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

stringstyle_formatter_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ func TestGetFormattingStyleOptions(t *testing.T) {
135135
expectedFirstSymbolCase: stringFormatter.ToUpper,
136136
expectedTextCase: stringFormatter.ToUpper,
137137
},
138+
"camel-lower-case-style": {
139+
style: "camel",
140+
expectedStyle: stringFormatter.Camel,
141+
expectedFirstSymbolCase: stringFormatter.ToLower,
142+
expectedTextCase: stringFormatter.NoChanges,
143+
},
144+
"camel-upper-case-style": {
145+
style: "Camel",
146+
expectedStyle: stringFormatter.Camel,
147+
expectedFirstSymbolCase: stringFormatter.ToUpper,
148+
expectedTextCase: stringFormatter.NoChanges,
149+
},
138150
} {
139151
t.Run(name, func(t *testing.T) {
140152
actualStyle, actualFirstSymbolCase, actualTextCase := stringFormatter.GetFormattingStyleOptions(test.style)

0 commit comments

Comments
 (0)