2023-06-09 10:02:30 +02:00
|
|
|
<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>
|
2023-08-03 16:59:05 +02:00
|
|
|
<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>
|
2023-06-09 10:02:30 +02:00
|
|
|
<li>From the <wikipedia name="Formal grammar">grammar</wikipedia> in
|
2023-08-03 16:59:05 +02:00
|
|
|
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
|
2023-06-09 10:02:30 +02:00
|
|
|
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>
|
2023-08-03 16:59:05 +02:00
|
|
|
</page>
|