mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Add additional details to date test cases.
This commit is contained in:
parent
dd19d0cc77
commit
f610d45cd8
1 changed files with 2 additions and 1 deletions
|
@ -247,7 +247,8 @@ func TestParsingDateInFrontMatter(t *testing.T) {
|
|||
t.Fatalf("Expected to be able to parse page.")
|
||||
}
|
||||
if !dt.Equal(p.Date) {
|
||||
t.Errorf("Date does not equal frontmatter:\n%s\nGot: %s. Diff: %s", test.buf, p.Date, dt.Sub(p.Date))
|
||||
//if dt != p.Date {
|
||||
t.Errorf("Date does not equal frontmatter:\n%s\nExpecting: %s\n Got: %s. Diff: %s\n internal: %#v\n %#v", test.buf, dt, p.Date, dt.Sub(p.Date), dt, p.Date)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue