MCPcopy Create free account
hub / github.com/Mercury7353/PyBench / test_task_150

Function test_task_150

data/unit_test/tests.py:1469–1476  ·  view source on GitHub ↗
(trajectory)

Source from the content-addressed store, hash-verified

1467 return audio.info.length * 1000 # 持续时间以毫秒为单位
1468
1469def test_task_150(trajectory):
1470 audio_path = "./output/150.mp3"
1471 ref_path = "./data/Ghostrifter Official - Serenity.mp3"
1472
1473 audio_duration = get_mp3_duration(audio_path)
1474 ref_audio_duration = get_mp3_duration(ref_path)
1475
1476 assert audio_duration < ref_audio_duration
1477
1478
1479def test_task_151(trajectory):

Callers

nothing calls this directly

Calls 1

get_mp3_durationFunction · 0.85

Tested by

no test coverage detected