yaml-test-suite
yaml-test-suite copied to clipboard
is there some logic to the naming of tests?
Is there some system to the test names/URLs?
Eg https://github.com/yaml/yaml-test-suite/blob/main/src/7A4E.yaml is "Example 7.6" from the spec. But I cannot easily find "Example 7.6" in this repo, because github doesn't seem to have phrase search:
- https://github.com/yaml/yaml-test-suite/search?q=%22Example+7.6%22
- https://github.com/yaml/yaml-test-suite/search?q=Example+7.6
(Ok, I know, I should checkout and search with grep. But the original question stays)
I see a sort of two "inverse indexes":
- https://github.com/yaml/yaml-test-suite/tree/data/name lists the tests by name
- https://github.com/yaml/yaml-test-suite/tree/data/tags lists the tests by tag (topic)
You should also be able to find all tests with titles here:
- https://matrix.yaml.info/sheet/valid.html
- https://matrix.yaml.info/sheet/invalid.html
All tests taken from the spec examples are named as such.
The test ids are randomly generated with https://github.com/yaml/yaml-test-suite/blob/main/bin/new-test-id