You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
401 B
21 lines
401 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package tlstest
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestPrivateKey(t *testing.T) {
|
|
a := privateKey("a.tstest")
|
|
a2 := privateKey("a.tstest")
|
|
b := privateKey("b.tstest")
|
|
|
|
if string(a) != string(a2) {
|
|
t.Errorf("a and a2 should be equal")
|
|
}
|
|
if string(a) == string(b) {
|
|
t.Errorf("a and b should not be equal")
|
|
}
|
|
}
|
|
|