From b3bc31875b3db05296391c4a804641732e13fda7 Mon Sep 17 00:00:00 2001 From: Robert Hill Date: Thu, 27 Aug 2026 11:46:01 -0400 Subject: [PATCH] test(whichkey): fix key-sequence generator wrapping at 26 in tests makeMatches() wrapped at charCode 97+26, producing duplicate keys past the alphabet instead of distinct ones. --- src/content/whichkey_content.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/whichkey_content.test.ts b/src/content/whichkey_content.test.ts index 716a1279..92a8700f 100644 --- a/src/content/whichkey_content.test.ts +++ b/src/content/whichkey_content.test.ts @@ -35,7 +35,7 @@ function makeKey( function makeMatches(count: number): Map { const map: Map = new Map() for (let i = 0; i < count; i++) { - map.set([makeKey(String.fromCharCode(97 + (i % 26)))], `cmd${i}`) + map.set([makeKey(String.fromCharCode(97 + i))], `cmd${i}`) } return map }