github.com/ultraware/gqlgen@v0.7.2/codegen/templates/templates_test.go (about)

     1  package templates
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/require"
     7  )
     8  
     9  func TestToUpper(t *testing.T) {
    10  	require.Equal(t, "ToCamel", ToCamel("TO_CAMEL"))
    11  	require.Equal(t, "ToCamel", ToCamel("to_camel"))
    12  	require.Equal(t, "ToCamel", ToCamel("toCamel"))
    13  	require.Equal(t, "ToCamel", ToCamel("ToCamel"))
    14  	require.Equal(t, "ToCamel", ToCamel("to-camel"))
    15  }