Skip to content

Commit

Permalink
fix: fix vitamin b1 thiamin %DV (#7072)
Browse files Browse the repository at this point in the history
fix: fix vitamin b1 thiamin %DV #6882
  • Loading branch information
stephanegigandet authored Jul 18, 2022
1 parent 80911fa commit 4699f67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/food.t
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ assign_nid_modifier_value_and_unit($product_ref, "vitamin-a", undef, 40, "IU");
assign_nid_modifier_value_and_unit($product_ref, "vitamin-e", undef, 40, "IU");
assign_nid_modifier_value_and_unit($product_ref, "calcium", undef, 20, "% DV");
assign_nid_modifier_value_and_unit($product_ref, "vitamin-d", undef, 20, "% DV");
assign_nid_modifier_value_and_unit($product_ref, "vitamin-b1", undef, 100, "% DV");

is_deeply($product_ref,
{
Expand All @@ -620,6 +621,9 @@ is_deeply($product_ref,
'vitamin-a' => '1.2e-05',
'vitamin-a_unit' => 'IU',
'vitamin-a_value' => 40,
'vitamin-b1' => '0.0012',
'vitamin-b1_unit' => '% DV',
'vitamin-b1_value' => 100,
'vitamin-d' => '8e-06',
'vitamin-d_unit' => '% DV',
'vitamin-d_value' => 20,
Expand Down
Binary file modified taxonomies/nutrients.result.sto
Binary file not shown.
1 change: 1 addition & 0 deletions taxonomies/nutrients.result.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5370,6 +5370,7 @@ sl:Vitamin B1 (Tiamin)
xx:Vitamin B1 (Thiamin), Vitamin B1, Thiamin
zh:维生素B1(硫胺)
dv_2016_value:en: 1.2
dv_value:en: 1.2
unit:en: mg

zz:vitamin-b12
Expand Down
1 change: 1 addition & 0 deletions taxonomies/nutrients.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3669,6 +3669,7 @@ sk:Vitamín B1
sl:Vitamin B1 (Tiamin)
zh:维生素B1(硫胺)
dv_2016_value:en: 1.2
dv_value:en: 1.2
unit:en: mg

zz:vitamin-b2
Expand Down

0 comments on commit 4699f67

Please sign in to comment.