Skip to content

Commit

Permalink
update tests rounding error
Browse files Browse the repository at this point in the history
  • Loading branch information
paulboosz committed Dec 17, 2024
1 parent a5d5771 commit d5e68f3
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 89 deletions.
100 changes: 53 additions & 47 deletions tests/e2e-food.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
[
{
"name": "Mango by plane",
"query": ["ingredients[]=db0e5f44-34b4-4160-b003-77c828d75e60;120", "distribution=ambient"],
"query": [
"ingredients[]=db0e5f44-34b4-4160-b003-77c828d75e60;120",
"distribution=ambient"
],
"impacts": {
"acd": 0.00926762,
"acd": 0.00926761,
"cch": 1.78237,
"etf": 8.20261,
"etf": 8.20262,
"etf-c": 10.3337,
"fru": 25.1932,
"fwe": 0.0000347419,
"fru": 25.1933,
"fwe": 0.000034742,
"htc": 2.16244e-10,
"htc-c": 1.34522e-10,
"htn": 1.97431e-8,
"htn-c": 7.37138e-10,
"htn-c": 7.37139e-10,
"ior": 0.126353,
"ldu": 6.27717,
"mru": 0.00000143123,
"ozd": 4.08594e-7,
"pco": 0.00935356,
"mru": 0.00000143122,
"ozd": 4.08595e-7,
"pco": 0.00935357,
"pma": 2.60861e-8,
"swe": 0.00327752,
"tre": 0.0365914,
"swe": 0.00327751,
"tre": 0.0365913,
"wtu": 0.271561,
"ecs": 132.893,
"ecs": 132.892,
"pef": 132.568
},
"scoring": {
"all": 1384.3,
"climate": 517.68,
"biodiversity": 430.804,
"health": 139.13,
"resources": 296.682
"resources": 296.683
}
},
{
Expand All @@ -45,15 +48,15 @@
"etf": 1.84092,
"etf-c": 2.52793,
"fru": 2.19219,
"fwe": 0.0000140517,
"htc": 8.1535e-11,
"htc-c": 6.9446e-11,
"htn": 1.60504e-9,
"fwe": 0.0000140518,
"htc": 8.15352e-11,
"htc-c": 6.94461e-11,
"htn": 1.60503e-9,
"htn-c": 4.87184e-10,
"ior": 0.0104384,
"ldu": 3.33427,
"mru": 0.00000105999,
"ozd": 3.77056e-8,
"ozd": 3.77055e-8,
"pco": 0.00131445,
"pma": 1.00995e-8,
"swe": 0.000446798,
Expand All @@ -65,42 +68,45 @@
"scoring": {
"all": 216.102,
"climate": 49.1049,
"biodiversity": 91.8819,
"biodiversity": 91.882,
"health": 26.6354,
"resources": 48.4799
}
},
{
"name": "Mango by plane from Brazil (by default)",
"query": ["ingredients[]=db0e5f44-34b4-4160-b003-77c828d75e60;120;BR", "distribution=ambient"],
"query": [
"ingredients[]=db0e5f44-34b4-4160-b003-77c828d75e60;120;BR",
"distribution=ambient"
],
"impacts": {
"acd": 0.00441355,
"cch": 0.82117,
"etf": 4.32208,
"etf-c": 5.59946,
"etf": 4.32209,
"etf-c": 5.59947,
"fru": 11.7598,
"fwe": 0.0000170341,
"fwe": 0.0000170342,
"htc": 1.01146e-10,
"htc-c": 6.02302e-11,
"htc-c": 6.02303e-11,
"htn": 9.34177e-9,
"htn-c": 5.25547e-10,
"htn-c": 5.25548e-10,
"ior": 0.0660491,
"ldu": 4.13951,
"mru": 8.03415e-7,
"mru": 8.03414e-7,
"ozd": 1.87018e-7,
"pco": 0.00434212,
"pma": 1.2206e-8,
"swe": 0.00152764,
"swe": 0.00152763,
"tre": 0.0174427,
"wtu": 0.255903,
"ecs": 64.5655,
"ecs": 64.5654,
"pef": 63.241
},
"scoring": {
"all": 672.557,
"climate": 238.504,
"biodiversity": 220.929,
"health": 65.4052,
"health": 65.4053,
"resources": 147.718
}
},
Expand All @@ -113,31 +119,31 @@
"impacts": {
"acd": 0.00441355,
"cch": 0.82117,
"etf": 4.32208,
"etf-c": 5.59946,
"etf": 4.32209,
"etf-c": 5.59947,
"fru": 11.7598,
"fwe": 0.0000170341,
"fwe": 0.0000170342,
"htc": 1.01146e-10,
"htc-c": 6.02302e-11,
"htc-c": 6.02303e-11,
"htn": 9.34177e-9,
"htn-c": 5.25547e-10,
"htn-c": 5.25548e-10,
"ior": 0.0660491,
"ldu": 4.13951,
"mru": 8.03415e-7,
"mru": 8.03414e-7,
"ozd": 1.87018e-7,
"pco": 0.00434212,
"pma": 1.2206e-8,
"swe": 0.00152764,
"swe": 0.00152763,
"tre": 0.0174427,
"wtu": 0.255903,
"ecs": 64.5655,
"ecs": 64.5654,
"pef": 63.241
},
"scoring": {
"all": 672.557,
"climate": 238.504,
"biodiversity": 220.929,
"health": 65.4052,
"health": 65.4053,
"resources": 147.718
}
},
Expand All @@ -148,32 +154,32 @@
"distribution=ambient"
],
"impacts": {
"acd": 0.000895412,
"acd": 0.000895413,
"cch": 0.0768733,
"etf": 1.39526,
"etf-c": 2.00499,
"fru": 1.27151,
"fru": 1.2715,
"fwe": 0.00000831758,
"htc": 4.26187e-11,
"htc-c": 3.34663e-11,
"htn": 9.69275e-10,
"htn-c": 4.18376e-10,
"htn-c": 4.18377e-10,
"ior": 0.0191304,
"ldu": 2.8253,
"mru": 7.07029e-7,
"ldu": 2.82529,
"mru": 7.07028e-7,
"ozd": 1.58903e-8,
"pco": 0.000615888,
"pma": 5.27733e-9,
"pma": 5.27734e-9,
"swe": 0.000214666,
"tre": 0.00307689,
"wtu": 0.246424,
"ecs": 13.1369,
"wtu": 0.246423,
"ecs": 13.1368,
"pef": 11.251
},
"scoring": {
"all": 136.842,
"climate": 22.3274,
"biodiversity": 64.5441,
"biodiversity": 64.5442,
"health": 14.5354,
"resources": 35.4351
}
Expand Down
Loading

0 comments on commit d5e68f3

Please sign in to comment.