This repository has been archived on 2020-04-20. You can view files and clone it, but cannot push or open issues or pull requests.
libricochet-go/identity/identity_test.go

14 lines
293 B
Go
Raw Normal View History

package identity
import (
"github.com/s-rah/go-ricochet/identity"
"testing"
)
func TestIdentity(t *testing.T) {
id := identity.Init("../testing/private_key")
if id.Hostname() != "kwke2hntvyfqm7dr" {
t.Errorf("Expected %v as Hostname() got: %v", "kwke2hntvyfqm7dr", id.Hostname())
}
}