github.com/openshift/installer@v1.4.17/pkg/types/installconfig_test.go (about)

     1  package types
     2  
     3  import (
     4  	"sort"
     5  	"testing"
     6  
     7  	"github.com/stretchr/testify/assert"
     8  )
     9  
    10  func TestPlatformNamesSorted(t *testing.T) {
    11  	sorted := make([]string, len(PlatformNames))
    12  	copy(sorted, PlatformNames)
    13  	sort.Strings(sorted)
    14  	assert.Equal(t, sorted, PlatformNames)
    15  }