• Home
  • Raw
  • Download

Lines Matching refs:isoywd_opt

1945         let isoywd_opt = |y, w, d| NaiveDate::from_isoywd_opt(y, w, d);  in test_date_from_isoywd()  localVariable
1948 assert_eq!(isoywd_opt(2004, 0, Weekday::Sun), None); in test_date_from_isoywd()
1949 assert_eq!(isoywd_opt(2004, 1, Weekday::Mon), Some(ymd(2003, 12, 29))); in test_date_from_isoywd()
1950 assert_eq!(isoywd_opt(2004, 1, Weekday::Sun), Some(ymd(2004, 1, 4))); in test_date_from_isoywd()
1951 assert_eq!(isoywd_opt(2004, 2, Weekday::Mon), Some(ymd(2004, 1, 5))); in test_date_from_isoywd()
1952 assert_eq!(isoywd_opt(2004, 2, Weekday::Sun), Some(ymd(2004, 1, 11))); in test_date_from_isoywd()
1953 assert_eq!(isoywd_opt(2004, 52, Weekday::Mon), Some(ymd(2004, 12, 20))); in test_date_from_isoywd()
1954 assert_eq!(isoywd_opt(2004, 52, Weekday::Sun), Some(ymd(2004, 12, 26))); in test_date_from_isoywd()
1955 assert_eq!(isoywd_opt(2004, 53, Weekday::Mon), Some(ymd(2004, 12, 27))); in test_date_from_isoywd()
1956 assert_eq!(isoywd_opt(2004, 53, Weekday::Sun), Some(ymd(2005, 1, 2))); in test_date_from_isoywd()
1957 assert_eq!(isoywd_opt(2004, 54, Weekday::Mon), None); in test_date_from_isoywd()
1959 assert_eq!(isoywd_opt(2011, 0, Weekday::Sun), None); in test_date_from_isoywd()
1960 assert_eq!(isoywd_opt(2011, 1, Weekday::Mon), Some(ymd(2011, 1, 3))); in test_date_from_isoywd()
1961 assert_eq!(isoywd_opt(2011, 1, Weekday::Sun), Some(ymd(2011, 1, 9))); in test_date_from_isoywd()
1962 assert_eq!(isoywd_opt(2011, 2, Weekday::Mon), Some(ymd(2011, 1, 10))); in test_date_from_isoywd()
1963 assert_eq!(isoywd_opt(2011, 2, Weekday::Sun), Some(ymd(2011, 1, 16))); in test_date_from_isoywd()
1965 assert_eq!(isoywd_opt(2018, 51, Weekday::Mon), Some(ymd(2018, 12, 17))); in test_date_from_isoywd()
1966 assert_eq!(isoywd_opt(2018, 51, Weekday::Sun), Some(ymd(2018, 12, 23))); in test_date_from_isoywd()
1967 assert_eq!(isoywd_opt(2018, 52, Weekday::Mon), Some(ymd(2018, 12, 24))); in test_date_from_isoywd()
1968 assert_eq!(isoywd_opt(2018, 52, Weekday::Sun), Some(ymd(2018, 12, 30))); in test_date_from_isoywd()
1969 assert_eq!(isoywd_opt(2018, 53, Weekday::Mon), None); in test_date_from_isoywd()