Skip to content

Instantly share code, notes, and snippets.

@mag
Created April 21, 2009 15:28
Show Gist options
  • Save mag/99192 to your computer and use it in GitHub Desktop.
Save mag/99192 to your computer and use it in GitHub Desktop.
def test_monthly_distribution
pv_module = sunpower_module
distribution = pv_module.generation_for_month(tmy3_stations(:fake_station), 5, 35, 225)
assert_equal 24, distribution.size
assert_equal 5052.28, distribution[13].precision(2)
assert_equal 37655.08, distribution.sum.precision(2)
end
def test_monthly_distribution
pv_module = sunpower_module
distribution = pv_module.generation_for_month(tmy3_stations(:fake_station), 5, 35, 225)
assert_equal 24, distribution.size
assert_equal 4755.38, distribution[13].precision(2)
assert_equal 36523.42, distribution.sum.precision(2)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment