We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb6c464 commit 5f8c105Copy full SHA for 5f8c105
tests/test_models.py
@@ -240,6 +240,10 @@ def test_fahrenheit_negative(self):
240
def test_fahrenheit_rounding(self):
241
assert convert_temp(22.0, TempUnit.FAHRENHEIT) == 71.6
242
243
+ def test_fahrenheit_rounding_precision(self):
244
+ """22.3°C -> 72.14°F: round to 1 decimal gives 72.1, not 72.14."""
245
+ assert convert_temp(22.3, TempUnit.FAHRENHEIT) == 72.1
246
+
247
248
class TestTempSuffix:
249
"""Tests for temp_suffix()."""
0 commit comments