github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/protocol/keybase1/extras_amd64_test.go (about)

     1  // Copyright 2017 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  package keybase1
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/stretchr/testify/require"
    10  )
    11  
    12  func TestSize(t *testing.T) {
    13  	require.Equal(t, UID("a").Size(), 9)
    14  	require.Equal(t, TeamID("a").Size(), 9)
    15  	require.Equal(t, UserOrTeamID("a").Size(), 9)
    16  	kid := KID("a")
    17  	require.Equal(t, kid.Size(), 9)
    18  }