chore(developer): failing test for invalid variable name

for #11044
This commit is contained in:
Steven R. Loomis 2024-03-28 01:17:18 -05:00
parent 92a4a2a0a2
commit ad64bdf163
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt" conformsTo="45">
<info name="vars-fail" />
<keys />
<variables>
<string id="markcaret" value="✔🥕" />
<set id="vowel" value="a i o"/>
<set id="caretVowel" value="🥕a 🥕i 🥕o"/>
</variables>
<transforms type="simple">
<transformGroup>
<transform from="${mark-caret}($[vowel])" to="$[1:caretVowel]" />
</transformGroup>
</transforms>
</keyboard3>

View file

@ -187,6 +187,10 @@ describe('vars', function () {
CompilerMessages.Error_MissingStringVariable({id: 'missingStringInSet'})
],
},
{
subpath: 'sections/vars/fail-badref-7.xml',
errors: true,
},
], varsDependencies);
describe('should match some marker constants', () => {
// neither of these live here, but, common/web/types does not import ldml-keyboard-constants otherwise.