← 返回 stripe 的题目列表Repo Debugging: Fix Failing Tests in a Failsafe Project
类型:online_judge
Problem: Debugging — Fix Failing Tests in a Failsafe Repository
You are given an open-source repository ("failsafe") with several failing unit tests. Your task is to:
Run the test suite locally to identify the failing tests.
Analyze each failure to find the root cause (e.g., logic bugs, boundary conditions, exception handling).
Fix the code so that all tests pass, without introducing regressions.
Requirements
Use a test-driven approach: each fix should be justified by explaining why the specific test failed.
After your changes, the full test suite must pass.
Note
The original notes mention ~3 bugs and fixing 3 failing tests, but provide no specific failing test names or code context, so the exact prompt cannot be reconstructed further.