mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-19 15:33:09 +00: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.")
|
t.Fatalf("Expected to be able to parse page.")
|
||||||
}
|
}
|
||||||
if !dt.Equal(p.Date) {
|
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