FAILURE MAP
← Case archive

FA-97228 / Recipe scaling and nutrition / Member archive

Meal glycemic load: portion scaling · case 03

A 200 g portion counts the same as the 100 g reference.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Rows [name, gi, carbs, fiber, grams_eaten, per_grams] where carbs and fiber are per per_grams. Available carb = (carbs-fiber)*eaten/per. Meal GI = sum(gi*avail)/sum(avail) half-up integer (None if no available carb). GL = sum(gi*avail)/100 half-up to 0.1. Class from the exact GL: <=10 low, <20 medium, else high.

Why this case matters

Diabetes-friendly meal planners estimate combined glycemic load from mixed foods.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
mixed meal{"class": "high", "gi": 66, "gl": 38.6}{"class": "high", "gi": 53, "gl": 25.0}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 ↗