mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-29 19:48:38 +00:00
22 lines
396 B
Go
22 lines
396 B
Go
![]() |
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// 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")
|
||
|
}
|
||
|
}
|