aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser/pageparser/pageparser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/pageparser/pageparser_test.go')
-rw-r--r--parser/pageparser/pageparser_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/parser/pageparser/pageparser_test.go b/parser/pageparser/pageparser_test.go
index a50ab46e9..c6bedbd6f 100644
--- a/parser/pageparser/pageparser_test.go
+++ b/parser/pageparser/pageparser_test.go
@@ -101,3 +101,14 @@ func BenchmarkHasShortcode(b *testing.B) {
}
})
}
+
+func TestSummaryDividerStartingFromMain(t *testing.T) {
+ c := qt.New(t)
+
+ input := `aaa <!--more--> bbb`
+ items, err := collectStringMain(input)
+ c.Assert(err, qt.IsNil)
+
+ c.Assert(items, qt.HasLen, 4)
+ c.Assert(items[1].Type, qt.Equals, TypeLeadSummaryDivider)
+}