Skip to content

Commit

Permalink
Issue-7: fix tests in au definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Peble committed Jul 24, 2017
1 parent efaac44 commit fbf1ac1
Showing 1 changed file with 30 additions and 70 deletions.
100 changes: 30 additions & 70 deletions au.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,42 +280,12 @@ tests:
expect:
name: 'Labour Day'
- given:
date: '2012-06-11'
date: ['2012-06-11', '2012-10-01', '2013-6-10', '2015-6-8', '2016-10-3']
regions: ["au_qld"]
expect:
name: "Queen's Birthday"
- given:
date: '2012-10-01'
regions: ["au_qld"]
expect:
name: "Queen's Birthday"
- given:
date: '2015-06-10'
regions: ["au_qld"]
expect:
name: "Queen's Birthday"
- given:
date: '2015-06-08'
regions: ["au_qld"]
expect:
name: "Queen's Birthday"
- given:
date: '2016-10-03'
regions: ["au_qld"]
expect:
name: "Queen's Birthday"
- given:
date: '2014-09-29'
regions: ["au_wa"]
expect:
name: "Queen's Birthday"
- given:
date: '2015-09-28'
regions: ["au_wa"]
expect:
name: "Queen's Birthday"
- given:
date: '2016-09-26'
date: ['2014-09-29', '2015-09-28', '2016-09-26']
regions: ["au_wa"]
expect:
name: "Queen's Birthday"
Expand Down Expand Up @@ -410,6 +380,11 @@ tests:
regions: ["au_nt"]
expect:
holiday: false
- given:
date: '2016-12-27'
regions: ["au_sa"]
expect:
name: 'Proclamation Day'
- given:
date: '2016-12-25'
regions: ["au_nt"]
Expand Down Expand Up @@ -517,58 +492,47 @@ tests:
options: ["observed"]
expect:
name: 'ANZAC Day'
- given:
date: '2015-12-26'
regions: ["au"]
expect:
name: 'Boxing Day'
- given:
date: '2015-12-26'
regions: ["au"]
options: ["observed"]
expect:
name: 'Boxing Day'
- given:
date: '2015-12-26'
regions: ["au_qld"]
expect:
name: 'Boxing Day'
name: "Boxing Day"
- given:
date: '2015-12-28'
regions: ["au_qld"]
options: ["observed"]
expect:
name: 'Boxing Day'
name: "Boxing Day"
- given:
date: '2015-12-28'
date: '2015-12-26'
regions: ["au_sa"]
expect:
name: 'Boxing Day'
holiday: false
- given:
date: '2016-12-27'
date: '2015-12-28'
regions: ["au_sa"]
expect:
name: 'Boxing Day'
name: "Proclamation Day"
- given:
date: '2015-12-28'
date: '2015-12-26'
regions: ["au_tas"]
expect:
name: 'Boxing Day'
holiday: false
- given:
date: '2015-12-28'
regions: ["au_nt"]
regions: ["au_tas"]
expect:
name: 'Boxing Day'
name: "Boxing Day"
- given:
date: '2016-12-26'
date: '2015-12-26'
regions: ["au_nt"]
expect:
name: 'Boxing Day'
holiday: false
- given:
date: '2016-12-26'
regions: ["au_vic"]
date: '2015-12-28'
regions: ["au_nt"]
expect:
name: 'Boxing Day'
name: "Boxing Day"
- given:
date: '2012-02-13'
regions: ["au_tas_south"]
Expand All @@ -589,22 +553,12 @@ tests:
regions: ["au_tas_south"]
expect:
name: 'Royal Hobart Regatta'

- given:
date: '2016-12-25'
regions: ["au_qld"]
expect:
name: 'Christmas Day'
- given:
date: '2016-12-25'
regions: ["au"]
expect:
name: 'Christmas Day'
- given:
date: '2016-12-25'
regions: ["au"]
options: ["observed"]
expect:
name: 'Christmas Day'
- given:
date: '2016-12-27'
regions: ["au_qld"]
Expand Down Expand Up @@ -660,6 +614,12 @@ tests:
regions: ["au_sa"]
expect:
name: 'Christmas Day'
- given:
date: '2016-12-26'
regions: ["au_sa"]
options: ["observed"]
expect:
name: 'Christmas Day'
- given:
date: '2016-12-25'
regions: ["au_nsw"]
Expand Down Expand Up @@ -762,4 +722,4 @@ tests:
date: '2017-04-16'
regions: ["au_qld"]
expect:
name: "Easter Sunday"
name: "Easter Sunday"

0 comments on commit fbf1ac1

Please sign in to comment.