mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
parent
822dc627a1
commit
a574469797
16 changed files with 238 additions and 44 deletions
|
@ -88,12 +88,13 @@ func TestFormatFromContentString(t *testing.T) {
|
|||
{`foo: "bar"`, YAML},
|
||||
{`foo:"bar"`, YAML},
|
||||
{`{ "foo": "bar"`, JSON},
|
||||
{`a,b,c"`, CSV},
|
||||
{`asdfasdf`, Format("")},
|
||||
{``, Format("")},
|
||||
} {
|
||||
errMsg := fmt.Sprintf("[%d] %s", i, test.data)
|
||||
|
||||
result := FormatFromContentString(test.data)
|
||||
result := Default.FormatFromContentString(test.data)
|
||||
|
||||
assert.Equal(test.expect, result, errMsg)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue