// Code generated by rsagen, DO NOT EDIT.

package example

import (
	"crypto/rsa"
	"fmt"
	"testing"

	"github.com/stretchr/testify/assert"

	"go.mau.fi/mautrix-telegram/pkg/gotd/crypto"
)

func TestFingerprintManyPK(t *testing.T) {
	fingerprint := func(pubkey *rsa.PublicKey) string {
		return fmt.Sprintf("%08x", uint64(crypto.RSAFingerprint(pubkey)))
	}
	expected := []string{
		"c3b42b026ce86b21",
		"bc35f3509f7b7a5",
		"15ae5fa8b5529542",
		"aeae98e13cd7f94f",
		"5a181b2235057d98",
	}
	assert.Len(t, ManyPK, len(expected))
	for i, pubkey := range ManyPK {
		assert.Equal(t, expected[i], fingerprint(pubkey))
	}
}
