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

import "testing"

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