Reorganise tests

Make the titles of test pages more suggestive.
Refactor the documentation of the tests.
This commit is contained in:
PLanCompS 2020-09-28 16:37:42 +02:00
parent aa247408e4
commit 405180c863
57 changed files with 179 additions and 171 deletions

View File

@ -1,13 +1,13 @@
---
layout: default
title: "0"
title: Tests for exclusion 0
has_children: true
nav_exclude: true
---
# Tests for exclusion 0
```yaml
title: "0"
title: Tests for exclusion 0
has_children: true
nav_exclude: true
```

View File

@ -1,15 +1,15 @@
---
layout: default
title: "00"
parent: "0"
title: Tests for exclusion 00
parent: Tests for exclusion 0
has_children: true
nav_exclude: true
---
# Tests for exclusion 00
```yaml
title: "00"
parent: "0"
title: Tests for exclusion 00
parent: Tests for exclusion 0
has_children: true
nav_exclude: true
```

View File

@ -1,17 +1,17 @@
---
layout: default
title: "000"
parent: "00"
grand_parent: "0"
title: Tests for exclusion 000
parent: Tests for exclusion 00
grand_parent: Tests for exclusion 0
has_children: false
nav_exclude: true
---
# Tests for exclusion 000
```yaml
title: "000"
parent: "00"
grand_parent: "0"
title: Tests for exclusion 000
parent: Tests for exclusion 00
grand_parent: Tests for exclusion 0
has_children: false
nav_exclude: true
```

View File

@ -1,17 +1,17 @@
---
layout: default
title: "001"
parent: "00"
grand_parent: "0"
title: Tests for exclusion 001
parent: Tests for exclusion 00
grand_parent: Tests for exclusion 0
has_children: false
nav_exclude: false
---
# Tests for exclusion 001
```yaml
title: "001"
parent: "00"
grand_parent: "0"
title: Tests for exclusion 001
parent: Tests for exclusion 00
grand_parent: Tests for exclusion 0
has_children: false
nav_exclude: false
```

View File

@ -1,15 +1,15 @@
---
layout: default
title: "01"
parent: "0"
title: Tests for exclusion 01
parent: Tests for exclusion 0
has_children: true
nav_exclude: false
---
# Tests for exclusion 01
```yaml
title: "01"
parent: "0"
title: Tests for exclusion 01
parent: Tests for exclusion 0
has_children: true
nav_exclude: false
```

View File

@ -1,17 +1,17 @@
---
layout: default
title: "010"
parent: "01"
grand_parent: "0"
title: Tests for exclusion 010
parent: Tests for exclusion 01
grand_parent: Tests for exclusion 0
has_children: false
nav_exclude: true
---
# Tests for exclusion 010
```yaml
title: "010"
parent: "01"
grand_parent: "0"
title: Tests for exclusion 010
parent: Tests for exclusion 01
grand_parent: Tests for exclusion 0
has_children: false
nav_exclude: true
```

View File

@ -1,17 +1,17 @@
---
layout: default
title: "011"
parent: "01"
grand_parent: "0"
title: Tests for exclusion 011
parent: Tests for exclusion 01
grand_parent: Tests for exclusion 0
has_children: false
nav_exclude: false
---
# Tests for exclusion 011
```yaml
title: "011"
parent: "01"
grand_parent: "0"
title: Tests for exclusion 011
parent: Tests for exclusion 01
grand_parent: Tests for exclusion 0
has_children: false
nav_exclude: false
```

View File

@ -1,13 +1,13 @@
---
layout: default
title: "1"
title: Tests for exclusion 1
has_children: true
nav_exclude: false
---
# Tests for exclusion 1
```yaml
title: "1"
title: Tests for exclusion 1
has_children: true
nav_exclude: false
```

View File

@ -1,15 +1,15 @@
---
layout: default
title: "10"
parent: "1"
title: Tests for exclusion 10
parent: Tests for exclusion 1
has_children: true
nav_exclude: true
---
# Tests for exclusion 10
```yaml
title: "10"
parent: "1"
title: Tests for exclusion 10
parent: Tests for exclusion 1
has_children: true
nav_exclude: true
```

View File

@ -1,17 +1,17 @@
---
layout: default
title: "100"
parent: "10"
grand_parent: "1"
title: Tests for exclusion 100
parent: Tests for exclusion 10
grand_parent: Tests for exclusion 1
has_children: false
nav_exclude: true
---
# Tests for exclusion 100
```yaml
title: "100"
parent: "10"
grand_parent: "1"
title: Tests for exclusion 100
parent: Tests for exclusion 10
grand_parent: Tests for exclusion 1
has_children: false
nav_exclude: true
```

View File

@ -1,17 +1,17 @@
---
layout: default
title: "101"
parent: "10"
grand_parent: "1"
title: Tests for exclusion 101
parent: Tests for exclusion 10
grand_parent: Tests for exclusion 1
has_children: false
nav_exclude: false
---
# Tests for exclusion 101
```yaml
title: "101"
parent: "10"
grand_parent: "1"
title: Tests for exclusion 101
parent: Tests for exclusion 10
grand_parent: Tests for exclusion 1
has_children: false
nav_exclude: false
```

View File

@ -1,15 +1,15 @@
---
layout: default
title: "11"
parent: "1"
title: Tests for exclusion 11
parent: Tests for exclusion 1
has_children: true
nav_exclude: false
---
# Tests for exclusion 11
```yaml
title: "11"
parent: "1"
title: Tests for exclusion 11
parent: Tests for exclusion 1
has_children: true
nav_exclude: false
```

View File

@ -1,17 +1,17 @@
---
layout: default
title: "110"
parent: "11"
grand_parent: "1"
title: Tests for exclusion 110
parent: Tests for exclusion 11
grand_parent: Tests for exclusion 1
has_children: false
nav_exclude: true
---
# Tests for exclusion 110
```yaml
title: "110"
parent: "11"
grand_parent: "1"
title: Tests for exclusion 110
parent: Tests for exclusion 11
grand_parent: Tests for exclusion 1
has_children: false
nav_exclude: true
```

View File

@ -1,17 +1,17 @@
---
layout: default
title: "111"
parent: "11"
grand_parent: "1"
title: Tests for exclusion 111
parent: Tests for exclusion 11
grand_parent: Tests for exclusion 1
has_children: false
nav_exclude: false
---
# Tests for exclusion 111
```yaml
title: "111"
parent: "11"
grand_parent: "1"
title: Tests for exclusion 111
parent: Tests for exclusion 11
grand_parent: Tests for exclusion 1
has_children: false
nav_exclude: false
```

View File

@ -7,26 +7,30 @@ grand_parent: Tests
# Tests for exclusion Exclusion
Pages excluded from the main navigation can have parents and children. Navigation to and between excluded pages can be supported by the auto-generating list of child pages inserted at the bottom of each page, and by links to parents in the breadcrumbs at the top of each page.
The following tests cover all combinations of excluded and included pages for the top level, child pages, and grandchild pages. The last binary digit in a page title indicates whether the page is included (1) or excluded (0); preceding digits refer to its parent and grandparent.
## Tests for exclusion Included in main navigation
- ["1"](1/)
- ["11"](11/)
- ["111"](111/)
- [Tests for exclusion 1](1/)
- [Tests for exclusion 11](11/)
- [Tests for exclusion 111](111/)
## Tests for exclusion Included only in child navigation
- ["110"](110/)
- ["10"](10/)
- ["101"](101/)
- ["100"](100/)
- [Tests for exclusion 110](110/)
- [Tests for exclusion 10](10/)
- [Tests for exclusion 101](101/)
- [Tests for exclusion 100](100/)
## Tests for exclusion Not included in navigation
- ["0"](0/)
- ["01"](01/)
- ["011"](011/)
- ["010"](010/)
- ["00"](00/)
- ["001"](001/)
- ["000"](000/)
- [Tests for exclusion 0](0/)
- [Tests for exclusion 01](01/)
- [Tests for exclusion 011](011/)
- [Tests for exclusion 010](010/)
- [Tests for exclusion 00](00/)
- [Tests for exclusion 001](001/)
- [Tests for exclusion 000](000/)
- ["Untitled"](untitled/)

View File

@ -1,6 +1,6 @@
---
layout: default
title: A
title: Tests for disambiguation A
has_children: true
---
@ -9,6 +9,6 @@ has_children: true
A top-level page
```yaml
title: A
title: Tests for disambiguation A
has_children: true
```

View File

@ -1,6 +1,6 @@
---
layout: default
title: B
title: Tests for disambiguation B
has_children: true
---
@ -9,6 +9,6 @@ has_children: true
A top-level page
```yaml
title: B
title: Tests for disambiguation B
has_children: true
```

View File

@ -1,7 +1,7 @@
---
layout: default
title: C
parent: A
title: Tests for disambiguation C
parent: Tests for disambiguation A
has_children: true
---
@ -10,7 +10,7 @@ has_children: true
A child of page A, and parent of page D
```yaml
title: C
parent: A
title: Tests for disambiguation C
parent: Tests for disambiguation A
has_children: true
```

View File

@ -1,7 +1,7 @@
---
layout: default
title: C
parent: B
title: Tests for disambiguation C
parent: Tests for disambiguation B
has_children: true
---
@ -10,7 +10,7 @@ has_children: true
A child of page B, and parent of page D
```yaml
title: C
parent: B
title: Tests for disambiguation C
parent: Tests for disambiguation B
has_children: true
```

View File

@ -1,8 +1,8 @@
---
layout: default
title: D
parent: C
grand_parent: A
title: Tests for disambiguation D
parent: Tests for disambiguation C
grand_parent: Tests for disambiguation A
---
# D
@ -10,7 +10,7 @@ grand_parent: A
A grandchild of page A
```yaml
title: D
parent: C
grand_parent: A
title: Tests for disambiguation D
parent: Tests for disambiguation C
grand_parent: Tests for disambiguation A
```

View File

@ -1,8 +1,8 @@
---
layout: default
title: D
parent: C
grand_parent: B
title: Tests for disambiguation D
parent: Tests for disambiguation C
grand_parent: Tests for disambiguation B
---
# D
@ -10,7 +10,7 @@ grand_parent: B
A grandchild of page B
```yaml
title: D
parent: C
grand_parent: B
title: Tests for disambiguation D
parent: Tests for disambiguation C
grand_parent: Tests for disambiguation B
```

View File

@ -1,11 +1,13 @@
---
layout: default
title: Parent disambiguation
title: Disambiguation
parent: Navigation
grand_parent: Tests
---
# Parent disambiguation
# Disambiguation
When different pages with children have the same title, referencing the relevant grandparent in the children disambiguates which page is intended.
- [Page A](a/) has a child [page with title C](ca/), and a grandchild [page with title D](dca/).
- [Page B](b/) has a child [page with title C](cb/), and a grandchild [page with title D](dcb/).

View File

@ -2,7 +2,7 @@
layout: default
title: "10"
parent: Default
grand_parent: Order
grand_parent: Tests for order
---
# 10
@ -10,5 +10,5 @@ grand_parent: Order
```yaml
title: "10"
parent: Default
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -2,7 +2,7 @@
layout: default
title: "2"
parent: Default
grand_parent: Order
grand_parent: Tests for order
---
# 2
@ -10,5 +10,5 @@ grand_parent: Order
```yaml
title: "2"
parent: Default
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -2,7 +2,7 @@
layout: default
title: A
parent: Default
grand_parent: Order
grand_parent: Tests for order
---
# A
@ -10,5 +10,5 @@ grand_parent: Order
```yaml
title: A
parent: Default
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -2,7 +2,7 @@
layout: default
title: aa
parent: Default
grand_parent: Order
grand_parent: Tests for order
---
# aa
@ -10,5 +10,5 @@ grand_parent: Order
```yaml
title: aa
parent: Default
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -2,7 +2,7 @@
layout: default
title: Aa
parent: Default
grand_parent: Order
grand_parent: Tests for order
---
# Aa
@ -10,5 +10,5 @@ grand_parent: Order
```yaml
title: Aa
parent: Default
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -1,7 +1,7 @@
---
layout: default
title: Default
parent: Tests for navigation order
parent: Tests for order
nav_order: 1
has_children: true
---

View File

@ -3,7 +3,7 @@ layout: default
title: "-1.1"
nav_order: -1.1
parent: Floats
grand_parent: Order
grand_parent: Tests for order
---
# -1.1
@ -12,5 +12,5 @@ grand_parent: Order
title: "-1.1"
nav_order: -1.1
parent: Floats
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "0.0"
nav_order: 0.0
parent: Floats
grand_parent: Order
grand_parent: Tests for order
---
# 0.0
@ -12,5 +12,5 @@ grand_parent: Order
title: "0.0"
nav_order: 0.0
parent: Floats
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "10.0"
nav_order: 10.0
parent: Floats
grand_parent: Order
grand_parent: Tests for order
---
# 10.0
@ -12,5 +12,5 @@ grand_parent: Order
title: "10.0"
nav_order: 10.0
parent: Floats
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "2.2222"
nav_order: 2.2222
parent: Floats
grand_parent: Order
grand_parent: Tests for order
---
# 2.2222
@ -12,5 +12,5 @@ grand_parent: Order
title: "2.2222"
nav_order: 2.2222
parent: Floats
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -1,7 +1,7 @@
---
layout: default
title: Floats
parent: Tests for navigation order
parent: Tests for order
nav_order: 4
has_children: true
---

View File

@ -7,6 +7,8 @@ grand_parent: Tests
# Order
The value of `nav_order` can be numbers (integers, floats) and/or strings. The following tests illustrate their effects.
- [Default](default/), using `title` instead of `nav_order` fields.
- [Strings](strings/), lexicographically ordered, possibly case-insensitively.
- [Integers](integers/), numerically ordered.

View File

@ -3,7 +3,7 @@ layout: default
title: "-1"
nav_order: -1
parent: Integers
grand_parent: Order
grand_parent: Tests for order
---
# -1
@ -12,5 +12,5 @@ grand_parent: Order
title: "-1"
nav_order: -1
parent: Integers
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "0"
nav_order: 0
parent: Integers
grand_parent: Order
grand_parent: Tests for order
---
# 0
@ -12,5 +12,5 @@ grand_parent: Order
title: "0"
nav_order: 0
parent: Integers
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "10"
nav_order: 10
parent: Integers
grand_parent: Order
grand_parent: Tests for order
---
# 10
@ -12,5 +12,5 @@ grand_parent: Order
title: "10"
nav_order: 10
parent: Integers
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "2"
nav_order: 2
parent: Integers
grand_parent: Order
grand_parent: Tests for order
---
# 2
@ -12,5 +12,5 @@ grand_parent: Order
title: "2"
nav_order: 2
parent: Integers
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -1,7 +1,7 @@
---
layout: default
title: Integers
parent: Tests for navigation order
parent: Tests for order
nav_order: 3
has_children: true
---

View File

@ -3,7 +3,7 @@ layout: default
title: "-1.1"
nav_order: -1.1
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# -1.1
@ -12,5 +12,5 @@ grand_parent: Order
title: "-1.1"
nav_order: -1.1
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "-1"
nav_order: -1
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# -1
@ -12,5 +12,5 @@ grand_parent: Order
title: "-1"
nav_order: -1
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "0.0"
nav_order: 0.0
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# 0.0
@ -12,5 +12,5 @@ grand_parent: Order
title: "0.0"
nav_order: 0.0
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "0"
nav_order: 0
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# 0
@ -12,5 +12,5 @@ grand_parent: Order
title: "0"
nav_order: 0
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "10.0"
nav_order: 10.0
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# 10.0
@ -12,5 +12,5 @@ grand_parent: Order
title: "10.0"
nav_order: 10.0
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -2,7 +2,7 @@
layout: default
title: "10"
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# 10
@ -10,5 +10,5 @@ grand_parent: Order
```yaml
title: "10"
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "2.2222"
nav_order: 2.2222
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# 2.2222
@ -12,5 +12,5 @@ grand_parent: Order
title: "2.2222"
nav_order: 2.2222
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -2,7 +2,7 @@
layout: default
title: "2"
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# 2
@ -10,5 +10,5 @@ grand_parent: Order
```yaml
title: "2"
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -2,7 +2,7 @@
layout: default
title: A
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# A
@ -10,5 +10,5 @@ grand_parent: Order
```yaml
title: A
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: aa
nav_order: "aa"
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# aa
@ -12,5 +12,5 @@ grand_parent: Order
title: aa
nav_order: "aa"
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: Aa
nav_order: "Aa"
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
---
# Aa
@ -12,5 +12,5 @@ grand_parent: Order
title: Aa
nav_order: "Aa"
parent: Mixture
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -1,7 +1,7 @@
---
layout: default
title: Mixture
parent: Tests for navigation order
parent: Tests for order
nav_order: 5
has_children: true
---

View File

@ -3,7 +3,7 @@ layout: default
title: "10"
nav_order: "10"
parent: Strings
grand_parent: Order
grand_parent: Tests for order
---
# 10
@ -12,5 +12,5 @@ grand_parent: Order
title: "10"
nav_order: "10"
parent: Strings
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: "2"
nav_order: "2"
parent: Strings
grand_parent: Order
grand_parent: Tests for order
---
# 2
@ -12,5 +12,5 @@ grand_parent: Order
title: "2"
nav_order: "2"
parent: Strings
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: A
nav_order: A
parent: Strings
grand_parent: Order
grand_parent: Tests for order
---
# A
@ -12,5 +12,5 @@ grand_parent: Order
title: A
nav_order: A
parent: Strings
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: aa
nav_order: "aa"
parent: Strings
grand_parent: Order
grand_parent: Tests for order
---
# aa
@ -12,5 +12,5 @@ grand_parent: Order
title: aa
nav_order: "aa"
parent: Strings
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -3,7 +3,7 @@ layout: default
title: Aa
nav_order: "Aa"
parent: Strings
grand_parent: Order
grand_parent: Tests for order
---
# Aa
@ -12,5 +12,5 @@ grand_parent: Order
title: Aa
nav_order: "Aa"
parent: Strings
grand_parent: Order
grand_parent: Tests for order
```

View File

@ -1,7 +1,7 @@
---
layout: default
title: Strings
parent: Tests for navigation order
parent: Tests for order
nav_order: 2
has_children: true
---