Created
April 21, 2009 15:28
-
-
Save mag/99192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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