feat(developer):kmc-convert fix more typos in tests

This commit is contained in:
Sabine 2026-06-04 18:58:08 +02:00
parent c11e6f8b15
commit 9dcd90c634
2 changed files with 2 additions and 2 deletions

View file

@ -1673,7 +1673,7 @@ export class KmnFileWriter {
// add a warning message
if (msg !== "") {
msg = msg + msg_control + msg_entity;
msg = msg + "; " + msg_control + msg_entity;
}
if ((msg === "") && (msg_entity !== "" || msg_control !== "")) {
msg = "c WARNING: " + msg_entity + msg_control;

View file

@ -137,7 +137,7 @@ describe('KmnFileWriter', function () {
["", "U+0006", "Msg; Use of a control character "],
].forEach(function (values) {
it(('should convert "' + values[0] + '"').padEnd(25, " ") + 'to "' + values[1] + '"', async function () {
const result = sutW.writeCharacterOrUnicode(values[0] as string, "Msg; ");
const result = sutW.writeCharacterOrUnicode(values[0] as string, "Msg");
assert.isNotNull(result);
assert.equal(result.character, values[1]);
assert.equal(result.message, values[2]);