修复变更、增加筛选条件

This commit is contained in:
andy committed 2026-09-11 21:22:14 +08:00
1 parent 712ec51d68
commit e06afc8c33
137 files changed
+35872 -275

No files matched your search

+5 -2
View File
@@ -197,7 +197,10 @@ test('catalog has exactly 19 ordered operations with adjacent template and examp
const example = labeledBlock(section, '示例');
assert.ok(template, `${section.directive}: missing template block`);
assert.ok(example, `${section.directive}: missing example block`);
assert.equal(textBlocks(section.body).length, 2, `${section.directive}: must contain only two text blocks`);
assert.equal(textBlocks(section.body).length, section.directive === '安排变更' ? 7 : 2, `${section.directive}: unexpected text blocks`);
if (section.directive === '安排变更') {
assert.match(textBlocks(section.body)[2], /^安排酒店变更\n团号:.+\n入住日期:.+\n离店日期:.+\n酒店搜索:.+\n间数:9$/u);
}
assert.equal(template.split(/\r?\n/, 1)[0], section.directive);
assert.equal(example.split(/\r?\n/, 1)[0], section.directive);
assert.ok(section.body.indexOf('#### 模板') < section.body.indexOf('#### 示例'));
@@ -489,7 +492,7 @@ test('independent-order updates preserve broad parser targets while arrangement
assert.match(arrangementSkill, /安排变更只接受酒店离店日期和\/或目标房间总数/);
assert.match(parser, /修改类只提取目标值/);
assert.match(parser, /updates\.actions 包含多个动作/);
assert.match(parser, /new Set\(\['end_date', 'room_count'\]\)/);
assert.match(parser, /new Set\(\['end_date', 'room_count', 'resource', 'remark'\]\)/);
assert.match(labeledBlock(sectionByDirective.get('独立团信息修改'), '示例'), /目标修改:人数改为8\+1(占)\+1/);
assert.match(updatingSkill, /兼容旧三段 `人数改为8\+1(占)\+1`/);
assert.match(updatingSkill, /pax\.child_no_bed=1/);