Add a few more tests for simplification
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-08-05 11:09:21 +02:00
parent 0bf2125aee
commit 27f1187399
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -48,9 +48,21 @@ func TestInReplyTo(t *testing.T) {
if results[0]["in-reply-to"] != "https://github.com/w3c/csswg-drafts/issues/2589" {
t.Fatalf("not in-reply-to, but %s", results[0]["in-reply-to"])
}
if results[0]["syndication"] != "https://github.com/w3c/csswg-drafts/issues/2589#thumbs_up-by-tantek" {
t.Fatalf("not in-reply-to, but %s", results[0]["syndication"])
}
if results[0]["published"] != "2018-04-25 11:14-0700" {
t.Fatalf("not published, but %s", results[0]["published"])
}
if results[0]["updated"] != "2018-04-25 11:14-0700" {
t.Fatalf("not updated, but %s", results[0]["updated"])
}
if results[0]["url"] != "http://tantek.com/2018/115/t1/" {
t.Fatalf("not url, but %s", results[0]["url"])
}
if results[0]["uid"] != "http://tantek.com/2018/115/t1/" {
t.Fatalf("not uid, but %s", results[0]["url"])
}
if authorValue, e := results[0]["author"]; e {
if author, ok := authorValue.(map[string]string); ok {