From ad64bdf163bb040f1f90bf03fca3f6e76f1d6bfc Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Thu, 28 Mar 2024 01:17:18 -0500 Subject: [PATCH] chore(developer): failing test for invalid variable name for #11044 --- .../fixtures/sections/vars/fail-badref-7.xml | 20 +++++++++++++++++++ developer/src/kmc-ldml/test/test-vars.ts | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 developer/src/kmc-ldml/test/fixtures/sections/vars/fail-badref-7.xml diff --git a/developer/src/kmc-ldml/test/fixtures/sections/vars/fail-badref-7.xml b/developer/src/kmc-ldml/test/fixtures/sections/vars/fail-badref-7.xml new file mode 100644 index 0000000000..bc9cc365ba --- /dev/null +++ b/developer/src/kmc-ldml/test/fixtures/sections/vars/fail-badref-7.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/developer/src/kmc-ldml/test/test-vars.ts b/developer/src/kmc-ldml/test/test-vars.ts index e3ac53c4a9..501c294961 100644 --- a/developer/src/kmc-ldml/test/test-vars.ts +++ b/developer/src/kmc-ldml/test/test-vars.ts @@ -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.