FA-97340 / Recipe scaling and nutrition / Member archive
Equilibrium brine calculator: quarter teaspoon rounding · case 05
1.6 tsp prints 1.75 because quarters always round up.
Case contract
Salt grams = total*pct/100 where total = meat+water for "wet" and meat only for "dry". Salt densities per tsp: table 6 g, morton kosher 4.8 g, diamond kosher 2.8 g. Return salt_g half-up to 0.1 (float), tsp half-up to 0.25 (float), and sodium_mg_per_100g = half-up of salt_g*393 per 100 g of total at equilibrium.
Why this case matters
Equilibrium brining sets salt as a percentage of meat plus water and converts between salt brands.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| dry brine ignores water | {"salt_g": 15.0, "sodium_mg_per_100g": 393, "tsp": 5.5} | {"salt_g": 15.0, "sodium_mg_per_100g": 393, "tsp": 5.25} | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗