Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with DOW Interval /list combo (0 0 12 ? * TUE,FRI/4) #129

Open
bradymholt opened this issue Jan 14, 2020 · 0 comments
Open

Issues with DOW Interval /list combo (0 0 12 ? * TUE,FRI/4) #129

bradymholt opened this issue Jan 14, 2020 · 0 comments

Comments

@bradymholt
Copy link
Owner

0 0 12 ? * TUE,FRI/4

Actual: ... 12:00 PM, every 4 days of the week
Should be: .... 12:00 PM, every Tuesday and every 4 weeks only on Friday

Tests

public void TestEvery2WeeksOnFriday()
{
    Assert.Equal("At 12:00 PM, every 2 weeks, only on Friday", GetDescription("0 0 12 ? * FRI/2"));
}
[Fact]
public void TestEvery3WeeksWedThroughFri()
{
    Assert.Equal("At 12:00 PM, every 3 weeks, Wednesday through Friday", GetDescription("0 0 12 ? * WED-FRI/3"));
}
[Fact]
public void TestEvery4WeeksTueAndFri()
{
    Assert.Equal("At 12:00 PM, every 4 weeks, only on Tuesday and Friday", GetDescription("0 0 12 ? * TUE,FRI/4"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant