mirror of
https://github.com/gohugoio/hugo.git
synced 2025-06-28 19:59:51 +00:00
parent
8915343075
commit
46f618756f
3 changed files with 4 additions and 4 deletions
|
@ -125,6 +125,7 @@ func TestUnmarshalToInterface(t *testing.T) {
|
|||
{[]byte(``), JSON, map[string]any{}},
|
||||
{[]byte(nil), JSON, map[string]any{}},
|
||||
{[]byte(`#+a: b`), ORG, expect},
|
||||
{[]byte("#+a: foo bar\n#+a: baz"), ORG, map[string]any{"a": []string{string("foo bar"), string("baz")}}},
|
||||
{[]byte(`#+DATE: <2020-06-26 Fri>`), ORG, map[string]any{"date": "2020-06-26"}},
|
||||
{[]byte(`#+LASTMOD: <2020-06-26 Fri>`), ORG, map[string]any{"lastmod": "2020-06-26"}},
|
||||
{[]byte(`#+PUBLISHDATE: <2020-06-26 Fri>`), ORG, map[string]any{"publishdate": "2020-06-26"}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue