FAILURE MAP
← Case archive

FA-97338 / Recipe scaling and nutrition / Member archive

Equilibrium brine calculator: quarter teaspoon rounding · case 03

1.6 tsp prints 1.75 because quarters always round up.

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
wet brine{"salt_g": 20.0, "sodium_mg_per_100g": 393, "tsp": 3.5}{"salt_g": 20.0, "sodium_mg_per_100g": 393, "tsp": 3.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 ↗