diff --git a/interop-tests/findings/02-smppsim.md b/interop-tests/findings/02-smppsim.md index 9d97daf..05a966a 100644 --- a/interop-tests/findings/02-smppsim.md +++ b/interop-tests/findings/02-smppsim.md @@ -57,12 +57,12 @@ tests passing, `malformed: 0`, `expert errors: 0` in both. | C12 (`smppsim-queuefull`) | pass | `smppsim-queuefull - C12 …`; `ESME_RMSGQFUL` returned, session stays bound, later send succeeds once the one-slot queue drains | | C13 (`maxOutstanding: 1`, 10 parallel) | pass | `smppsim - C13 …`; 10 distinct, strictly-increasing ids, none lost | | C15 (bind version) | pass (peer never declares, see below) | `smppsim - C15 …`, both 0x34 and 0x50 | -| C17 (encodings over loopback) | pass | `smppsim - C17 …`, 5 sub-tests: Latin-1, UCS-2, flash (0x10), raw 0xF0 (not flash), raw UDH+8-bit-binary | +| C17 (encodings over loopback) | pass | `smppsim - C17 …`, 5 sub-tests: Latin-1, UCS-2, flash (0x10), raw 0xF0 (flash), raw UDH+8-bit-binary | | C18 (`smppsim-outbind`) | pass (record, not judge) | `smppsim-outbind - C18 …`; see below for the wire facts | -C17's `raw 0xF0 (not flash)` recorded a `@larvit/smpp` defect, fixed in -[#95](https://github.com/larvit/larvitsmpp/pull/95): 0xF0 is GSM 03.38 message class 0, so it reads -as flash now. +C17's 0xF0 sub-test originally read `not flash`, recording a `@larvit/smpp` defect: 0xF0 is GSM +03.38 message class 0, immediate display. Fixed in +[#95](https://github.com/larvit/larvitsmpp/pull/95), and the assertion inverted in `ff6ba9f`. ## Defects in @larvit/smpp diff --git a/interop-tests/smppsim.test.ts b/interop-tests/smppsim.test.ts index 2417b2c..81628b3 100644 --- a/interop-tests/smppsim.test.ts +++ b/interop-tests/smppsim.test.ts @@ -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) {