Logo: Relish

  1. Sign in

Project: Common-date-api

Gather the number of working days in a date range

  • @working_days
Scenarios
Return the correct number of working days between the same date
Given
the start date of "2016-07-12" and end date of "2016-07-12"
When
the date range is passed to the system
Then
the correct number of "0" working days is returned
Return the correct number of working days between dates
Given
the start date of "2016-07-18" and end date of "2016-07-20"
When
the date range is passed to the system
Then
the correct number of "2" working days is returned
Return the correct number of working days between dates including a weekend
Given
the start date of "2016-07-22" and end date of "2016-07-27"
When
the date range is passed to the system
Then
the correct number of "3" working days is returned
Return the correct number of working days between dates including a bank holiday
Given
the start date of "2016-08-24" and end date of "2016-08-30"
When
the date range is passed to the system
Then
the correct number of "3" working days is returned
And
the correct holidays number of "1" is returned

Last published about 4 years ago by Matthew Thomas.