FAILURE MAP
← Case archive

FA-97328 / Recipe scaling and nutrition / Member archive

Equilibrium brine calculator: sodium mass fraction · case 03

Sodium is reported as the full salt mass in mg.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
strong morton brine{"salt_g": 200.0, "sodium_mg_per_100g": 5000, "tsp": 41.75}{"salt_g": 200.0, "sodium_mg_per_100g": 1965, "tsp": 41.75}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 ↗