mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
1 parent
5feb1a6bff
commit
594edad213
5 files changed
+40
-17
No files matched your search
@@ -45,3 +45,8 @@ func TestToSnakeCase(t *testing.T) {
|
||||
assert.Equal(t, expected, ToSnakeCase(input))
|
||||
}
|
||||
}
|
||||
|
||||
func TestSplitTrimSpace(t *testing.T) {
|
||||
assert.Equal(t, []string{"a", "b", "c"}, SplitTrimSpace("a\nb\nc", "\n"))
|
||||
assert.Equal(t, []string{"a", "b"}, SplitTrimSpace("\r\na\n\r\nb\n\n", "\n"))
|
||||
}
|
||||
Reference in new issue
Block a user