27 lines
1.3 KiB
XML
27 lines
1.3 KiB
XML
<page title="Test suites for language tag software">
|
|
|
|
<ul>
|
|
<li>Stéphane Bortzmeyer's test suites. The format is "tag
|
|
whitespace optional-comment":
|
|
<ul>
|
|
<li><a href="test-suites/well-formed-tags.txt">Well-formed tags</a>
|
|
(they may be invalid)</li>
|
|
<li><a href="test-suites/broken-tags.txt">Not well-formed tags</a></li>
|
|
<li><a href="test-suites/valid-tags.txt">Valid tags</a> (for the
|
|
2006-11-15 registry)</li>
|
|
<li><a href="test-suites/invalid-tags.txt">Invalid tags</a> (for the
|
|
2006-11-15 registry, they may be valid now, the current registry is <lsr-version/>!)</li>
|
|
</ul>
|
|
</li>
|
|
<li>ICU test suite, now apparently only <a
|
|
href="https://android.googlesource.com/platform/external/cldr/+/refs/heads/cldr-release-32-0-1/tools/java/org/unicode/cldr/util/data/langtagTest.txt">in
|
|
the Android source code</a></li>
|
|
<li>From the <wikipedia name="Formal grammar">grammar</wikipedia> in
|
|
the RFC, you can use programs like <a href="https://www.quut.com/abnfgen/">abnfgen</a> or <a
|
|
href="https://www.bortzmeyer.org/eustathius-test-grammars.html">eusthathius</a> to generate tags for testing a
|
|
parser. <em>Warning</em>: these tags will follow the grammar but may
|
|
not be well-formed, since some rules are not in the grammar (for
|
|
instance the rule that no two singletons must be identical).</li>
|
|
</ul>
|
|
</page>
|