FAILURE MAP
← Case archive

FA-97237 / Recipe scaling and nutrition / Member archive

Meal glycemic load: class from exact load · case 02

A meal with a glycemic load of exactly 10 is called medium.

Member previewVariant 2 · 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
load exactly ten{"class": "medium", "gi": 50, "gl": 10.0}{"class": "low", "gi": 50, "gl": 10.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 ↗