|
5 | 5 | <!-- vim-markdown-toc GFM --> |
6 | 6 |
|
7 | 7 | * [Introduction](#introduction) |
| 8 | + * [Test Structure](#test-structure) |
8 | 9 | * [Tests](#tests) |
9 | 10 | * [Uninomials without authorship](#uninomials-without-authorship) |
10 | 11 | * [Uninomials with authorship](#uninomials-with-authorship) |
|
29 | 30 | * [Hybrid formulae](#hybrid-formulae) |
30 | 31 | * [Graft-chimeras](#graft-chimeras) |
31 | 32 | * [Genus with hyphen (allowed by ICN)](#genus-with-hyphen-allowed-by-icn) |
32 | | - * [Misspeled name](#misspeled-name) |
| 33 | + * [Misspelled name](#misspelled-name) |
33 | 34 | * [A 'basionym' author in parenthesis (basionym is an ICN term)](#a-basionym-author-in-parenthesis-basionym-is-an-icn-term) |
34 | 35 | * [Infrageneric epithets (ICZN)](#infrageneric-epithets-iczn) |
35 | 36 | * [Names with multiple dashes in specific epithet](#names-with-multiple-dashes-in-specific-epithet) |
|
50 | 51 |
|
51 | 52 | ## Introduction |
52 | 53 |
|
53 | | -This test consists of a line-delimited input (scientific name), detailed |
54 | | -parsed output in JSON format and simplified parsed output in |
55 | | -pipe-delimited format |
| 54 | +This test suite validates scientific name parsing through structured test |
| 55 | +cases. Each test case provides an input scientific name with expected parsing |
| 56 | +results in JSON format. |
56 | 57 |
|
57 | | -Test Structure |
| 58 | +### Test Structure |
58 | 59 |
|
59 | | -The first line in every test is a scientific name to parse |
60 | | -The second line corresponds to detailed JSON output from the gnparser |
61 | | -The third line corresponds to pipe-delimited "simple" output. Simple output |
62 | | -consists of name-string UUID v5, verbatim name-string, canonical form without |
63 | | -ranks, canonical form with ranks, authorship of the most junior clade, year, |
64 | | -parsing quality number |
| 60 | +Each test case follows a four-part format: |
| 61 | + |
| 62 | +1. **Name:** The scientific name to be parsed (input) |
| 63 | +2. **Canonical:** Expected canonical form of the name |
| 64 | +3. **Authorship:** Expected authorship information |
| 65 | +4. **JSON Block:** Detailed parsing results from gnparser containing: |
| 66 | + - Parsing status and quality score |
| 67 | + - Verbatim and normalized name forms |
| 68 | + - Canonical forms (stemmed, simple, full) |
| 69 | + - Cardinality and taxonomic rank |
| 70 | + - Detailed authorship breakdown |
| 71 | + - Word-by-word parsing analysis |
| 72 | + - Unique name-string identifier |
65 | 73 |
|
66 | 74 | [Parsing quality](https://github.com/gnames/gnparser/quality.md) |
67 | 75 |
|
@@ -3162,7 +3170,7 @@ Authorship: |
3162 | 3170 | {"parsed":false,"quality":0,"verbatim":"Tsugo-piceo-piceo-picea × crassifolia","cardinality":0,"id":"0ab8c5ed-b224-5c17-9957-298a80cc07be","parserVersion":"test_version"} |
3163 | 3171 | ``` |
3164 | 3172 |
|
3165 | | -### Misspeled name |
| 3173 | +### Misspelled name |
3166 | 3174 |
|
3167 | 3175 | Name: Ambrysus-Stål, 1862 |
3168 | 3176 |
|
|
0 commit comments