Compare commits

...

2 Commits

Author SHA1 Message Date
27f1187399
Add a few more tests for simplification
All checks were successful
the build was successful
2018-08-05 11:09:21 +02:00
0bf2125aee
Add goland settings 2018-08-05 11:09:08 +02:00
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

9
.idea/go.imports.xml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GoImports">
<option name="groupStdlibImports" value="true" />
<option name="importSorting" value="GOIMPORTS" />
<option name="moveAllImportsInOneDeclaration" value="true" />
<option name="moveAllStdlibImportsInOneGroup" value="true" />
</component>
</project>

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 {