diff options
author | Noah Campbell <noahcampbell@gmail.com> | 2013-09-17 15:52:40 -0700 |
---|---|---|
committer | Noah Campbell <noahcampbell@gmail.com> | 2013-09-17 15:52:40 -0700 |
commit | a82efe5bb131f1d4a811d3220c2ce40d56aa9eaf (patch) | |
tree | 5fad2ed5757fbcb7cb04c97a6490e75c0308e41e /hugolib/page_test.go | |
parent | 6b0752e8c0334dfb2275a2edb975ec13a2724134 (diff) | |
parent | 554375b2addc4b4425bb4d3f154374b027c113cf (diff) |
Merge remote-tracking branch 'origin/parser' into mrg_praser
Also brought in parse for github.com/noahcampbell/akebia
Conflicts:
hugolib/page.go
hugolib/page_test.go
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r-- | hugolib/page_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go index 72833bb7d..a2a4999df 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go @@ -133,7 +133,7 @@ func TestDegenerateEmptyPage(t *testing.T) { t.Fatalf("Expected ReadFrom to return an error when an empty buffer is passed.") } - checkError(t, err, "test: unable to locate front matter") + checkError(t, err, "EOF") } func checkPageTitle(t *testing.T, page *Page, title string) { @@ -242,9 +242,9 @@ func TestDegenerateInvalidFrontMatterShortDelim(t *testing.T) { r string err string }{ - {INVALID_FRONT_MATTER_SHORT_DELIM, "unable to match beginning front matter delimiter"}, - {INVALID_FRONT_MATTER_SHORT_DELIM_ENDING, "unable to match ending front matter delimiter"}, - {INVALID_FRONT_MATTER_MISSING, "unable to detect front matter"}, + {INVALID_FRONT_MATTER_SHORT_DELIM, "Unable to locate frontmatter"}, + {INVALID_FRONT_MATTER_SHORT_DELIM_ENDING, "EOF"}, + {INVALID_FRONT_MATTER_MISSING, "Unable to locate frontmatter"}, } for _, test := range tests { _, err := ReadFrom(strings.NewReader(test.r), "invalid/front/matter/short/delim") |