aboutsummaryrefslogtreecommitdiff
path: root/peer/id_test.go
blob: 95297e13c78d510d0f65a912a751293be8e60d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
package peer

import "testing"

func TestID(t *testing.T) {
	id := NewID()
	if len(id) != 20 {
		t.Error("wrong length")
	}
	t.Log(string(id))
}