Skip to content

Commit

Permalink
chore(developer): correct ERROR_CharacterRangeTooLong test following fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markcsinclair committed Apr 22, 2024
1 parent 5fcf92d commit 81c5ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-kmn/test/test-messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

});

0 comments on commit 81c5ff4

Please sign in to comment.