mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
LowerFirst: use slicing and utf8 func tools (#5)
Replace looping with slicing and utf8 func tools operations.
This commit is contained in:
1 parent
a952cb208a
commit
ab012f2545
2 files changed
+6
-14
No files matched your search
@@ -70,6 +70,7 @@ func TestLowerFirst(t *testing.T) {
|
||||
lowerFirst(t, "foo", "foo")
|
||||
lowerFirst(t, "BAR", "bAR")
|
||||
lowerFirst(t, "FOo", "fOo")
|
||||
lowerFirst(t, "FOo大", "fOo大")
|
||||
}
|
||||
|
||||
func lowerFirst(t *testing.T, test string, expected string) {
|
||||
|
||||
Reference in new issue
Block a user