From 05c3c24348ea1e4e399e4113ca9523e4a8fd0564 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Mar 2026 13:23:21 +0000 Subject: [PATCH] Add test to kill convert_temp__mutmut_12 (round precision mutant) Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com> --- tests/test_models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_models.py b/tests/test_models.py index d28c7b4..20963ba 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -240,6 +240,10 @@ def test_fahrenheit_negative(self): def test_fahrenheit_rounding(self): assert convert_temp(22.0, TempUnit.FAHRENHEIT) == 71.6 + def test_fahrenheit_rounding_precision(self): + """22.3°C -> 72.14°F: round to 1 decimal gives 72.1, not 72.14.""" + assert convert_temp(22.3, TempUnit.FAHRENHEIT) == 72.1 + class TestTempSuffix: """Tests for temp_suffix()."""