Overview: To learn Ruby and Test Driven Development, I was tasked to create a command line program that would generate what the cal month/year or cal year would generate. While generating this program I was suppose to create tests to lead me to my final development.
Project status:
-Month class is created and can generate what cal month/year can
-Tests are developed and passed for Month class
-Year class is created and can generate what cal year can
-Tests are still in development for this process
unit test for my Cal project:
- its_a_century_leap_year
- its_not_a_century_leap_year
- its_a_non_century_leap_year
- its_not_a_non_century_leap_year
- number_month (converting a integer to a string of the month title)
- num_of_days_in_month (# of days in a month)
- num_of_days_in_february_in_a_leap_year
- num_of_days_in_february_not_in_a_leap_year
- first_weekday_of_month
- first_day_of_february_in_a_leap_year
- first_day_of_January
- print_month_header
- print_days_of_the_week_with_month_header
- format_days_of_month
- print_cal