mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
fix zero date
This commit is contained in:
@@ -533,8 +533,8 @@ func TestGroupedPages(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("Unable to make PageGroup array: %s", err)
|
||||
}
|
||||
if bydate[0].Key != "2008-01" {
|
||||
t.Errorf("PageGroup array in unexpected order. First group key should be '%s', got '%s'", "2008-01", bydate[0].Key)
|
||||
if bydate[0].Key != "0001-01" {
|
||||
t.Errorf("PageGroup array in unexpected order. First group key should be '%s', got '%s'", "0001-01", bydate[0].Key)
|
||||
}
|
||||
if bydate[1].Key != "2012-01" {
|
||||
t.Errorf("PageGroup array in unexpected order. Second group key should be '%s', got '%s'", "2012-01", bydate[1].Key)
|
||||
|
Reference in New Issue
Block a user