Cover a multi-segment Latin-1 message against a real peer, and correct the flash row it left stale

This commit is contained in:
2026-09-09 17:26:40 +02:00
parent 7d6039796d
commit cced03767e
2 changed files with 12 additions and 4 deletions
+8
View File
@@ -177,6 +177,14 @@ describe('smppsim - C3+C7 long MT, receipts and loopback reassembly', () => {
label: '2-segment UCS2 with 一 and an emoji',
message: `一😀${'x'.repeat(70)}`,
},
// Names its encoding because detect() never chooses LATIN1 - latin1.match() is false so that
// auto-selection skips it - and unnamed, this text would go out as UCS2.
{
encoding: 'LATIN1',
expectedSegments: 2,
label: '2-segment Latin-1',
message: 'é'.repeat(200),
},
];
for (const testCase of cases) {