Skip to content

Commit

Permalink
Update open/unknown interval tests
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed May 11, 2016
1 parent a97f0e2 commit 982accb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,19 @@ describe('parser', () => {

it('/', () =>
expect(p('/'))
.to.be.an.interval.from([]).until([]).at.level(1))
.to.be.an.interval.at.level(1).and.produce([null, null]))

it('*/*', () =>
expect(p('*/*'))
.to.be.an.interval.at.level(1).and.produce([Infinity, Infinity]))

it('YYYY-MM/*', () =>
expect(p('2016-05/*'))
.to.be.an.interval.from([2016, 4]).until([]).at.level(1))
.to.be.an.interval.from([2016, 4]).at.level(1))

it('/YYYY-MM', () =>
expect(p('/2016-05'))
.to.be.an.interval.from([]).until([2016, 4]).at.level(1))
.to.be.an.interval.until([2016, 4]).at.level(1))
})

describe('Level 2', () => {
Expand Down

0 comments on commit 982accb

Please sign in to comment.