refactor: rename rawChildren to unknownSlots

This commit is contained in:
c0dev0id
2026-07-06 21:10:46 +02:00
parent e823608325
commit 7fb584d929
2 changed files with 15 additions and 15 deletions

View File

@@ -256,7 +256,7 @@ ok('patched score is non-empty', patched.length > 100);
ok('patched score has no double blank lines beyond original', true); // structural sanity only
// ── FM modulation with embedded shape (synthetic) ─────────────────────────
// The fixture's FM+shape is inside PROFILE.partial (rawChildren) and unreachable
// The fixture's FM+shape is inside PROFILE.partial (unknownSlots) and unreachable
// from buildBasicProperties. Verify with a synthetic AST log fragment.
section('FM modulation with embedded shape (synthetic)');
const FM_FIXTURE = `00 instrument 'test'
@@ -692,10 +692,10 @@ const UNK_FIXTURE = `00 instrument 'test'
const unkModel = buildModel(parseAstLog(UNK_FIXTURE));
const unkInstr = unkModel.instruments[0];
ok('unknown slot: instrument parsed', !!unkInstr);
ok('unknown slot: rawChildren is array', Array.isArray(unkInstr.rawChildren));
ok('unknown slot: instrument-level unknown collected', unkInstr.rawChildren.length === 1);
ok('unknown slot: collected slot type', unkInstr.rawChildren[0].type === 'FUTURE_SLOT');
ok('variation-level unknown collected', unkInstr.variations[0]?.rawChildren?.length === 1);
ok('unknown slot: unknownSlots is array', Array.isArray(unkInstr.unknownSlots));
ok('unknown slot: instrument-level unknown collected', unkInstr.unknownSlots.length === 1);
ok('unknown slot: collected slot type', unkInstr.unknownSlots[0].type === 'FUTURE_SLOT');
ok('variation-level unknown collected', unkInstr.variations[0]?.unknownSlots?.length === 1);
section('Full fixture integration');
ok('fixture parses without error (checked above)', raw && raw.slot === 'root');