From 27f11873990b89540e1140001e670316015a9fb6 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 5 Aug 2018 11:09:21 +0200 Subject: [PATCH] Add a few more tests for simplification --- cmd/eksterd/simplify_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmd/eksterd/simplify_test.go b/cmd/eksterd/simplify_test.go index 9b50256..56fd35f 100644 --- a/cmd/eksterd/simplify_test.go +++ b/cmd/eksterd/simplify_test.go @@ -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 {