• Home
  • Raw
  • Download

Lines Matching refs:ymwd

2047         let ymwd = |y, m, w, n| NaiveDate::from_weekday_of_month_opt(y, m, w, n);  in test_date_from_weekday_of_month_opt()  localVariable
2048 assert_eq!(ymwd(2018, 8, Weekday::Tue, 0), None); in test_date_from_weekday_of_month_opt()
2049 assert_eq!(ymwd(2018, 8, Weekday::Wed, 1), Some(NaiveDate::from_ymd(2018, 8, 1))); in test_date_from_weekday_of_month_opt()
2050 assert_eq!(ymwd(2018, 8, Weekday::Thu, 1), Some(NaiveDate::from_ymd(2018, 8, 2))); in test_date_from_weekday_of_month_opt()
2051 assert_eq!(ymwd(2018, 8, Weekday::Sun, 1), Some(NaiveDate::from_ymd(2018, 8, 5))); in test_date_from_weekday_of_month_opt()
2052 assert_eq!(ymwd(2018, 8, Weekday::Mon, 1), Some(NaiveDate::from_ymd(2018, 8, 6))); in test_date_from_weekday_of_month_opt()
2053 assert_eq!(ymwd(2018, 8, Weekday::Tue, 1), Some(NaiveDate::from_ymd(2018, 8, 7))); in test_date_from_weekday_of_month_opt()
2054 assert_eq!(ymwd(2018, 8, Weekday::Wed, 2), Some(NaiveDate::from_ymd(2018, 8, 8))); in test_date_from_weekday_of_month_opt()
2055 assert_eq!(ymwd(2018, 8, Weekday::Sun, 2), Some(NaiveDate::from_ymd(2018, 8, 12))); in test_date_from_weekday_of_month_opt()
2056 assert_eq!(ymwd(2018, 8, Weekday::Thu, 3), Some(NaiveDate::from_ymd(2018, 8, 16))); in test_date_from_weekday_of_month_opt()
2057 assert_eq!(ymwd(2018, 8, Weekday::Thu, 4), Some(NaiveDate::from_ymd(2018, 8, 23))); in test_date_from_weekday_of_month_opt()
2058 assert_eq!(ymwd(2018, 8, Weekday::Thu, 5), Some(NaiveDate::from_ymd(2018, 8, 30))); in test_date_from_weekday_of_month_opt()
2059 assert_eq!(ymwd(2018, 8, Weekday::Fri, 5), Some(NaiveDate::from_ymd(2018, 8, 31))); in test_date_from_weekday_of_month_opt()
2060 assert_eq!(ymwd(2018, 8, Weekday::Sat, 5), None); in test_date_from_weekday_of_month_opt()