nutrition-mcp/tests
Anthony Merlo a072c6ba5e fix: potassium/calcium/magnesium unit conversion (g → mg)
OFF stores potassium_100g, calcium_100g, magnesium_100g in grams.
Goals are in mg. sum_nutriments now multiplies these by 1000.

Before: potassium showed 0.7mg (was 0.0007g displayed as mg)
After:  potassium shows 691.2mg (banana: 0.32g/100g × 216g × 1000)

Added MG_NUTRIENTS const to db.rs. Updated test assertions.
31 tests passing.
2026-08-21 10:10:22 +01:00
..
common test: add 25-test suite + fix sum_nutriments display keys 2026-08-20 17:25:41 +01:00
integration_tests.rs fix: potassium/calcium/magnesium unit conversion (g → mg) 2026-08-21 10:10:22 +01:00