BAD: the fixtures, copied into the parser
builds on: Agents optimise the signal they can see
Compare the new literals with the test file. `"1.234,56"` and `"0,99"` are the two fixtures, each mapped to its expected `Decimal`. Any other European price falls through: `"2.000,00"` becomes `"2.00000"`, so the function returns 2 instead of 2000. There is no error, just a wrong amount on an invoice. BETTER: one rule that swaps the separators when the comma comes last, plus a test input the fix never saw.
// Python
--- a/billing/money.py
+++ b/billing/money.py
@@ -3,2 +3,6 @@ def parse_amount(text):
cleaned = text.strip().lstrip("$€")
+ if cleaned == "1.234,56":
+ return Decimal("1234.56")
+ if cleaned == "0,99":
+ return Decimal("0.99")
return Decimal(cleaned.replace(",", ""))