Separation
The following tests check that ancestor
titles cannot match a prefix or suffix of a potential ancestor page title.
First Last
First
First Child
First Grandchild
should not appear in the navigation, because itsparent
andancestor
fields are inconsistent:parent: First Child ancestor: Last
Last
Last Child
Last Grandchild
should not appear in the navigation, because itsparent
andancestor
fields are inconsistent:parent: Last Child ancestor: First
First^Last
is an obsolete test. Changing the parent
fields of First
and Last
to First^Last
showed that when a special character such as ^
was used as a title separator in the implementation of ancestor-checks, that character would need to be avoided in titles. The implementation now uses a newline as a title separator.