github.com/koko1123/flow-go-1@v0.29.6/model/flow/order/identity_test.go (about)

     1  // (c) 2019 Dapper Labs - ALL RIGHTS RESERVED
     2  
     3  package order_test
     4  
     5  import (
     6  	"testing"
     7  
     8  	"github.com/stretchr/testify/require"
     9  
    10  	"github.com/koko1123/flow-go-1/model/flow/order"
    11  	"github.com/koko1123/flow-go-1/utils/unittest"
    12  )
    13  
    14  // Test the canonical ordering of identity and identifier match
    15  func TestCanonicalOrderingMatch(t *testing.T) {
    16  	identities := unittest.IdentityListFixture(100)
    17  	require.Equal(t, identities.Sort(order.Canonical).NodeIDs(), identities.NodeIDs().Sort(order.IdentifierCanonical))
    18  }