1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/pkg/piperutils/strings_test.go
2022-05-20 18:50:03 +02:00

16 lines
353 B
Go

package piperutils
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestTitle(t *testing.T) {
assert.Equal(t, "TEST", Title("tEST"))
assert.Equal(t, "Test", Title("test"))
assert.Equal(t, "TEST", Title("TEST"))
assert.Equal(t, "Test", Title("Test"))
assert.Equal(t, "TEST1 Test2 TEsT3 Test4", Title("TEST1 test2 tEsT3 Test4"))
}