Skip to content

Commit

Permalink
Merge pull request #19 from skrakau/adjust_test_values
Browse files Browse the repository at this point in the history
Convert test results units for comparison
  • Loading branch information
skrakau authored Jul 31, 2023
2 parents 70f67a2 + 41484e6 commit 0bd593d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class CO2FootprintFactoryTest extends Specification {
def results = new CO2FootprintFactory().computeTaskCO2footprint(traceRecord)

expect:
// Energy consumption in mWh
round(results[0]) == 24394.53
// CO2 in mg
round(results[1]) == 11587.40
// Energy consumption converted to Wh and compared to result from www.green-algorithms.org
round(results[0]/1000) == 24.39
// CO2 converted to g
round(results[1]/1000) == 11.59
}
}

0 comments on commit 0bd593d

Please sign in to comment.