yaml-test-suite icon indicating copy to clipboard operation
yaml-test-suite copied to clipboard

is there some logic to the naming of tests?

Open VladimirAlexiev opened this issue 2 years ago • 2 comments

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)

VladimirAlexiev avatar Jul 04 '22 13:07 VladimirAlexiev

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)

VladimirAlexiev avatar Jul 04 '22 13:07 VladimirAlexiev

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

perlpunk avatar Jul 04 '22 14:07 perlpunk