MCPcopy Create free account
hub / github.com/cloudflare/saffron / nth

Function nth

saffron/src/parse.rs:1861–1864  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1859
1860 #[test]
1861 fn nth() {
1862 assert_eq!(dow_expr("MON#1"), Ok(("", DayOfWeekExpr::Nth(e(2), e(1)))));
1863 assert_eq!(dow_expr("5#4"), Ok(("", DayOfWeekExpr::Nth(e(5), e(4)))));
1864 }
1865
1866 #[test]
1867 fn star_step() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected