You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make test failed as the followings. Apparently, the cause of errors is double quotes in Date.
$ go version
go version go1.10.1 darwin/amd64
$ make test
go get -d -t -v ./...
go test ./...
--- FAIL: TestFullContent (0.00s)
entry_test.go:56:
Error Trace: entry_test.go:56
Error: Not equal:
expected: "---\nTitle: 所内#3\nDate: \"2012-12-19T00:00:00+09:00\"\nURL: http://hatenablog.example.com/1\nEditURL: http://hatenablog.example.com/1/edit\n---\n\ntest\ntest2\n"
actual :"---\nTitle: 所内#3\nDate: 2012-12-19T00:00:00+09:00\nURL: http://hatenablog.example.com/1\nEditURL: http://hatenablog.example.com/1/edit\n---\n\ntest\ntest2\n"
Test: TestFullContent
--- FAIL: TestDraftFullContent (0.00s)
entry_test.go:99:
Error Trace: entry_test.go:99
Error: Not equal:
expected: "---\nTitle: 所内#4\nDate: \"2012-12-20T00:00:00+09:00\"\nURL: http://hatenablog.example.com/2\nEditURL: http://hatenablog.example.com/2/edit\nDraft: true\n---\n\n下書き\n"
actual :"---\nTitle: 所内#4\nDate: 2012-12-20T00:00:00+09:00\nURL: http://hatenablog.example.com/2\nEditURL: http://hatenablog.example.com/2/edit\nDraft: true\n---\n\n下書き\n"
Test: TestDraftFullContent
--- FAIL: TestUnmarshalYAML (0.00s)
entry_test.go:135:
Error Trace: entry_test.go:135
Error: Not equal:
expected: "Title: 所内\nCategory:\n- foo\n- bar\nDate: 2012-12-20T00:00:00+09:00\nURL: http://hatenablog.example.com/2\nEditURL: http://hatenablog.example.com/2/edit\n"
actual :"Title: 所内\nCategory:\n- foo\n- bar\nDate: \"2012-12-20T00:00:00+09:00\"\nURL: http://hatenablog.example.com/2\nEditURL: http://hatenablog.example.com/2/edit\n"
Test: TestUnmarshalYAML
FAIL
FAIL github.com/motemen/blogsync 0.051s
ok github.com/motemen/blogsync/atom (cached)
make: *** [test] Error 1
I investigated to fix that, but I'm not confident which (w/ or w/o double quotes) is right.
At least, I think the difference is stems from results of Marshaling time.Date and entryTime...
make test
failed as the followings. Apparently, the cause of errors is double quotes inDate
.I investigated to fix that, but I'm not confident which (w/ or w/o double quotes) is right.
At least, I think the difference is stems from results of
Marshal
ingtime.Date
andentryTime
...The text was updated successfully, but these errors were encountered: