feat: 完善 N7 智能座舱交互与控制链路
This commit is contained in:
@@ -251,6 +251,29 @@ class SpeechCapabilityAlignmentTests(unittest.TestCase):
|
||||
for token in ("副驾", "腿托", "向上", "100%"):
|
||||
self.assertIn(token, legrest.clean_text)
|
||||
|
||||
def test_directional_seat_endpoints_match_typed_axis_polarity(self) -> None:
|
||||
cases = (
|
||||
("把副驾滑轨向前调整到最大位置", "seat.longitudinal_position", 0),
|
||||
("把副驾座椅向后移动至极限位置", "seat.longitudinal_position", 100),
|
||||
("把副驾坐垫向上调整到最大位置", "seat.cushion_tilt", 0),
|
||||
("把副驾座椅高度往下移动至极限位置", "seat.cushion_tilt", 100),
|
||||
("把副驾靠背向前调整到最大位置", "seat.backrest_recline", 0),
|
||||
("把副驾靠背向后移动至极限位置", "seat.backrest_recline", 100),
|
||||
("把副驾腿托向上调整到最大位置", "seat.legrest_height", 100),
|
||||
("把副驾脚托向下移动至极限位置", "seat.legrest_height", 0),
|
||||
)
|
||||
for text, property_name, position_pct in cases:
|
||||
with self.subTest(text=text):
|
||||
result = self.processor.process(text)
|
||||
self.assertEqual(result.semantic_status, "recognized_executable")
|
||||
self.assertTrue(result.execution_eligible)
|
||||
self.assertEqual(len(result.commands), 1)
|
||||
self.assertEqual(result.commands[0].property_name, property_name)
|
||||
self.assertEqual(
|
||||
result.commands[0].parameters,
|
||||
{"position_pct": position_pct},
|
||||
)
|
||||
|
||||
def test_latest_reported_compounds_preserve_every_mutation(self) -> None:
|
||||
passenger = self.processor.process(
|
||||
"打开副驾座椅通风和加热,,然后将副驾座椅靠背调整到最大位置"
|
||||
|
||||
Reference in New Issue
Block a user