Separation
The following tests check that ancestor titles cannot match a prefix or suffix of a potential ancestor page title.
First LastFirstFirst ChildFirst Grandchildshould not appear in the navigation, because itsparentandancestorfields are inconsistent:parent: First Child ancestor: Last
LastLast ChildLast Grandchildshould not appear in the navigation, because itsparentandancestorfields 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.