@@ -16,6 +16,7 @@ def extract_text(result):
1616# Core regression tests (original bug)
1717# ------------------------------------------------------------
1818
19+
1920def test_precision_does_not_change_real_value ():
2021 r2 = calculator ("221 * 318.11" , precision = 2 )
2122 r4 = calculator ("221 * 318.11" , precision = 4 )
@@ -24,7 +25,7 @@ def test_precision_does_not_change_real_value():
2425 t4 = extract_text (r4 )
2526
2627 assert "70302.31" in t2
27- assert "70302.31" in t4 # trailing zeros are stripped by design
28+ assert "70302.31" in t4 # trailing zeros are stripped by design
2829
2930
3031def test_precision_does_not_change_division_value ():
@@ -42,6 +43,7 @@ def test_precision_does_not_change_division_value():
4243# Complex number regression tests
4344# ------------------------------------------------------------
4445
46+
4547def test_precision_does_not_change_complex_value ():
4648 r2 = calculator ("(1 + I) * 318.11" , precision = 2 )
4749 r4 = calculator ("(1 + I) * 318.11" , precision = 4 )
@@ -57,6 +59,7 @@ def test_precision_does_not_change_complex_value():
5759# Symbolic guardrails (correct semantics)
5860# ------------------------------------------------------------
5961
62+
6063def test_expression_with_symbols_remains_symbolic ():
6164 r = calculator ("x + 1" , precision = 2 )
6265 t = extract_text (r )
@@ -69,4 +72,3 @@ def test_force_numeric_applies_numeric_evaluation():
6972 t = extract_text (r )
7073
7174 assert "1.4142" in t
72-
0 commit comments