lnd.xprv/lnwire/node_announcement_test.go
2017-06-17 01:00:07 +02:00

17 lines
312 B
Go

package lnwire
import "testing"
func TestValidateAlias(t *testing.T) {
t.Parallel()
aliasStr := "012345678901234567890"
alias := NewAlias(aliasStr)
if err := alias.Validate(); err != nil {
t.Fatalf("alias was invalid: %v", err)
}
if aliasStr != alias.String() {
t.Fatalf("aliases don't match")
}
}