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,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/).