Skip to content

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

Open
@bradymholt

Description

@bradymholt

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"));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions