Skip to content

Commit acb471e

Browse files
committed
Add test cases for acronyms
1 parent 013f463 commit acb471e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/OpenAPIGeneratorCoreTests/Extensions/Test_SwiftSafeNames.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ final class Test_SwiftSafeNames: Test_Core {
3636
// All uppercase
3737
("HELLO_WORLD", "HELLO_WORLD", "HelloWorld", "helloWorld"),
3838

39+
// Acronyms
40+
("HTTPProxy", "HTTPProxy", "HTTPProxy", "hTTPProxy"),
41+
("OneHTTPProxy", "OneHTTPProxy", "OneHTTPProxy", "oneHTTPProxy"),
42+
3943
// Numbers
4044
("version 2.0", "version_space_2_period_0", "Version2_0", "version2_0"),
4145
("V1.2Release", "V1_period_2Release", "V1_2Release", "v1_2Release"),

0 commit comments

Comments
 (0)