Add test for corner case when all chars are uppercase or lowercase

This commit is contained in:
Gustavo Cordova Avila
2024-03-26 14:21:05 -07:00
parent 398148cdae
commit eac13167c7

View File

@@ -17,3 +17,11 @@ test "fromSnakeCase":
check "FIRST_NAME_ONLY".fromSnakeCase() == "firstNameOnly"
check "ROSTR_TOKEN".fromSnakeCase() == "rostrToken"
test "all lowercase":
check "thisisatest".toSnakeCase() == "THISISATEST"
check "thisisatest".fromSnakeCase() == "thisisatest"
test "all uppercase":
check "THISISATEST".toSnakeCase() == "THISISATEST"
check "THISISATEST".fromSnakeCase() == "thisisatest"