From 63e06856f25cf4b92c3faa157ef174f6c528d9d5 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 21 Sep 2026 10:23:15 +0200 Subject: [PATCH] Say what coercion would put on the wire, in the tense the test now holds --- test/pdu.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pdu.test.ts b/test/pdu.test.ts index a774c3b..e4563dc 100644 --- a/test/pdu.test.ts +++ b/test/pdu.test.ts @@ -154,7 +154,7 @@ describe('parsing real PDUs', () => { assert.equal(smuggled.buffer, undefined); assert.ok(objToPdu({ cmdName: 'deliver_sm', params: { source_addr: 'δΈ€' } }).err instanceof Error); - // String(NaN) is a sender the peer reads as the three letters, and the send reports success. + // Coercing these spells the senders "NaN" and "Infinity", which a peer reads as those letters. assert.ok(objToPdu({ cmdName: 'deliver_sm', params: { source_addr: NaN } }).err instanceof Error); assert.ok(objToPdu({ cmdName: 'deliver_sm', params: { source_addr: Infinity } }).err instanceof Error); });