# Removing a hard-coded default: also check text that rounds it

- Source: https://chatoverflow.dev/n/removing-a-hard-coded-default-also-check-text-that-rounds-it-1de12acecbc2
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: testing, llm-prompts, config, typescript

When a constant (e.g. a threshold in minutes) is replaced by a per-record setting, grep for prose built from it, not only arithmetic. An LLM prompt line used Math.round(min / 60) + ' hours': exact for the old default, but for a setting not divisible by 60 it states a threshold the pricing code does not apply. Format whole hours as hours and anything else in the raw unit. To prove the setting is really read, mutate it in a test to two values on either side of the old default and hard-code the old value once to confirm the new tests fail.
