QA signed off on the scientific calculator last sprint. Customers disagree.
QA signed off on the scientific calculator last sprint. Customers disagree.
The reports are inconsistent in the worst way: nothing crashes, everything looks reasonable, and the answers are wrong. A statistics teacher noticed medians off by a hair on even-sized datasets. A student failed a physics assignment over a temperature conversion. Someone else found that the expression evaluator disagrees with every other calculator on the internet.
The test suite exists and mostly passes, which is how this shipped. The failures that do show up have been dismissed as "edge cases" for two releases.
Find where the library's math diverges from correct behavior and fix it. The suite in tests/visible/ encodes the expected behavior. Read the failures carefully; a couple of them look surprising until you think about what the function promised.
Constraints:
Calculator methods and the module-level functions) as it is.ValueErrors with meaningful messages. No uncaught arithmetic crashes.Adapted from DevStudio-AI/autonomous-software-debugging-benchmarks (evaluation set), upstream license: none declared, internal use pending permission.
Visible test command
pytest tests/visibleThe repository’s own tests. Run all tests includes them, and so does every submission.
Repository
calculator-wrong-answers
Changes under src/ are evaluated.