Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64fc6cb
commit 75b2653
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/test/groovy/net/fortuna/ical4j/model/WeekDaySpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.fortuna.ical4j.model | ||
|
||
import net.fortuna.ical4j.util.Dates | ||
import spock.lang.Specification | ||
import spock.lang.Unroll | ||
|
||
class WeekDaySpec extends Specification { | ||
|
||
@Unroll | ||
def 'assert result of getNegativeMonthlyOffset'() { | ||
|
||
expect: 'returned result matches expected' | ||
WeekDay.getNegativeMonthlyOffset(cal) as String == expected | ||
|
||
where: | ||
cal | expected | ||
Dates.getCalendarInstance(new Date('20180228')) | '-3WE' | ||
Dates.getCalendarInstance(new Date('20191130')) | '-3WE' | ||
} | ||
} |