This repository has been archived on 2022-11-27. You can view files and clone it, but cannot push or open issues or pull requests.
activitypub/activitystreams/uri_test.go

40 lines
568 B
Go
Raw Normal View History

package activitystreams
2018-07-16 13:48:02 +00:00
import "testing"
func TestIRI_GetLink(t *testing.T) {
val := "http://example.com"
u := IRI(val)
2018-10-11 18:13:34 +00:00
if u.GetLink() != IRI(val) {
t.Errorf("IRI %q should equal %q", u, val)
2018-07-16 13:48:02 +00:00
}
}
func TestIRI_String(t *testing.T) {
val := "http://example.com"
u := IRI(val)
if u.String() != val {
2018-10-11 18:13:34 +00:00
t.Errorf("IRI %q should equal %q", u, val)
2018-07-16 13:48:02 +00:00
}
}
2018-11-10 21:37:06 +00:00
func TestIRI_GetID(t *testing.T) {
}
func TestIRI_GetType(t *testing.T) {
}
func TestIRI_IsLink(t *testing.T) {
}
func TestIRI_IsObject(t *testing.T) {
}
func TestIRI_UnmarshalJSON(t *testing.T) {
}