From 3c24597724f2808c0d3ee82519e2951a77183538 Mon Sep 17 00:00:00 2001 From: sudacode Date: Tue, 4 Aug 2026 17:58:39 -0700 Subject: [PATCH] fix(character-dictionary): source name parts from alias, not blank nativ - test: exercise the case where nativeName is empty and parts must come from alternativeNames' space split instead --- src/main/character-dictionary-runtime/term-building.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/character-dictionary-runtime/term-building.test.ts b/src/main/character-dictionary-runtime/term-building.test.ts index 8f7dfc71..afd8b20f 100644 --- a/src/main/character-dictionary-runtime/term-building.test.ts +++ b/src/main/character-dictionary-runtime/term-building.test.ts @@ -56,12 +56,15 @@ test('buildNameTerms drops the disambiguator letter of a mob character name', () }); test('buildNameTerms keeps a single-kanji name part', () => { + // The name is an alias, not the native name, so the parts come from the + // space split rather than from the native-name split. const terms = buildNameTerms( characterRecord({ firstNameHint: 'Sora', lastNameHint: 'Yamada', fullName: 'Sora Yamada', - nativeName: '山田 空', + nativeName: '', + alternativeNames: ['山田 空'], }), );