FAILURE MAP
← Case archive

FA-97234 / Recipe scaling and nutrition / Member archive

Meal glycemic load: meal GI weighting · case 04

A meal of mostly lentils and a slice of bread reports the plain average of their GIs.

Member previewVariant 4 · 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": 54, "gl": 25.0}{"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 ↗