diff --git a/developer/src/kmc-kmn/test/fixtures/invalid-keyboards/error_character_range_too_long.kmn b/developer/src/kmc-kmn/test/fixtures/invalid-keyboards/error_character_range_too_long.kmn index e19e3ab9f87..8b8c0e402fd 100644 --- a/developer/src/kmc-kmn/test/fixtures/invalid-keyboards/error_character_range_too_long.kmn +++ b/developer/src/kmc-kmn/test/fixtures/invalid-keyboards/error_character_range_too_long.kmn @@ -8,7 +8,6 @@ group(main) using keys c maximum store length is 4096 UTF-16 code units, including U+0000 terminator c #define GLOBAL_BUFSIZE 4096 // compfile.h c so we need 0x101E - 0x0020 + 1 = 0x0FFF --> 4095 words -c See #11136 for calculation adjustment TODO store(x) U+0020 .. U+101E diff --git a/developer/src/kmc-kmn/test/test-messages.ts b/developer/src/kmc-kmn/test/test-messages.ts index dd105f9be79..78f4870fafb 100644 --- a/developer/src/kmc-kmn/test/test-messages.ts +++ b/developer/src/kmc-kmn/test/test-messages.ts @@ -117,9 +117,9 @@ describe('KmnCompilerMessages', function () { // ERROR_CharacterRangeTooLong - it('should generate ERROR_CharacterRangeTooLong if a character range would expand to be too long (more than GLOBAL_BUFSIZE elements)', async function() { + it('should generate ERROR_CharacterRangeTooLong if a character range would expand to be too long and would overflow the buffer', async function() { await testForMessage(this, ['invalid-keyboards', 'error_character_range_too_long.kmn'], KmnCompilerMessages.ERROR_CharacterRangeTooLong); - // callbacks.printMessages(); + assert.equal(callbacks.messages[0].message, "Character range is too large and cannot be expanded"); }); });