Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaq committed Oct 8, 2024
1 parent c0644c0 commit 597afde
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/market-helper-core/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ fn item_data_basic() {
nutrition: NutritionalTable {
portion_weight: 1.0,
calories: 42.0,
carbohidrates: 23.0,
protein: 39.0,
total_fat: 123.0,
saturated_fat: 22.0,
fiber: 34.0,
},
}
.into();
let prices = item_data.prices();

assert_relative_eq!(prices.calories, 42.0);
assert_relative_eq!(prices.carbohidrates, 23.0);
assert_relative_eq!(prices.protein, 39.0);
assert_relative_eq!(prices.total_fat, 123.0);
assert_relative_eq!(prices.saturated_fat, 22.0);
assert_relative_eq!(prices.fiber, 34.0);
}

0 comments on commit 597afde

Please sign in to comment.