Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

159 unit test astronomical calculations #162

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

MosheBerman
Copy link
Owner

Adds automated tests to KosherCocoa.

Details

  • Defines aDynamicTests class. (It works by adding methods to the test class at runtime.)
  • Implement subclass to test NOAACalculatorTests.
    • Loads a CSV export of KosherJava's calendar generator
    • Iterates the dates in the CSV (Gregorian year 2023) for Lakewood NJ.
    • Calculates sunrise at elevation, seaLevelSunrise, sunset at elevation and seaLevelSunset.
    • Compares to the values in the CSV, with a 1 second margin of error.
    • To reduce runtime, the tests iterate with Swift's stride method, running the tests on every N days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit test astronomical calculations.
1 participant