Skip to content

Commit

Permalink
feat: add test to check sunday
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvankhademi committed Apr 16, 2024
1 parent 8cec9dc commit 042495a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/agent/market_schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ mod tests {
// Date 2400 range
assert!(market_schedule
.can_publish_at(&NaiveDateTime::parse_from_str("2023-12-31 23:59", format)?.and_utc()));

// Sunday
assert!(market_schedule
.can_publish_at(&NaiveDateTime::parse_from_str("2024-04-14 12:00", format)?.and_utc()));
Ok(())
}
}
Expand Down

0 comments on commit 042495a

Please sign in to comment.