迭代批量安排酒店

This commit is contained in:
andy committed 2026-09-24 14:43:08 +08:00
1 parent 4cfbefffe8
commit c2c71d35af
48 files changed
+5670 -57

No files matched your search

+2 -2
View File
@@ -208,7 +208,7 @@ test('catalog has exactly 19 ordered operations with adjacent template and examp
assert.deepEqual(operationSections.map((section) => section.directive), allDirectives);
for (const pair of catalogPairs) {
assert.equal(pair.blocks.length, 2, `${pair.directive}: expected template and example`);
assert.equal(pair.blocks.length, pair.directive === '安排酒店' ? 3 : 2, `${pair.directive}: expected template and example (plus hotel batch example)`);
assert.ok(pair.template, `${pair.directive}: missing template block`);
assert.ok(pair.example, `${pair.directive}: missing example block`);
assert.match(pair.template, /(必填):/u);
@@ -220,7 +220,7 @@ test('catalog has exactly 19 ordered operations with adjacent template and examp
assert.deepEqual(blocks.map((block) => block.split('\n')[0]), arrangementUpdateDirectives.flatMap((directive) => [directive, directive]));
continue;
}
assert.equal(textBlocks(section.body).length, 2);
assert.equal(textBlocks(section.body).length, section.directive === '安排酒店' ? 3 : 2);
assert.ok(labeledBlock(section, '模板'));
assert.ok(labeledBlock(section, '示例'));
assert.ok(section.body.indexOf('#### 模板') < section.body.indexOf('#### 示例'));