/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ |
D | ctor.local_days.pass.cpp | 44 constexpr year_month_weekday ymwd{sd}; in main() local 46 static_assert( ymwd.ok(), ""); in main() 47 static_assert( ymwd.year() == year{1970}, ""); in main() 48 static_assert( ymwd.month() == std::chrono::January, ""); in main() 49 static_assert( ymwd.weekday() == std::chrono::Thursday, ""); in main() 50 static_assert( ymwd.index() == 1, ""); in main() 51 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Thursday, 1}, ""); in main() 52 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main() 57 constexpr year_month_weekday ymwd{sd}; in main() local 59 static_assert( ymwd.ok(), ""); in main() [all …]
|
D | ctor.sys_days.pass.cpp | 43 constexpr year_month_weekday ymwd{sd}; in main() local 45 static_assert( ymwd.ok(), ""); in main() 46 static_assert( ymwd.year() == year{1970}, ""); in main() 47 static_assert( ymwd.month() == std::chrono::January, ""); in main() 48 static_assert( ymwd.weekday() == std::chrono::Thursday, ""); in main() 49 static_assert( ymwd.index() == 1, ""); in main() 50 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Thursday, 1}, ""); in main() 51 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main() 56 constexpr year_month_weekday ymwd{sd}; in main() local 58 static_assert( ymwd.ok(), ""); in main() [all …]
|
D | plus_minus_equal_month.pass.cpp | 57 year_month_weekday ymwd(y, month{i}, weekday_indexed{Tuesday, 2}); in main() local 59 assert(static_cast<unsigned>((ymwd += months{2}).month()) == i + 2); in main() 60 assert(ymwd.year() == y); in main() 61 assert(ymwd.weekday() == Tuesday); in main() 62 assert(ymwd.index() == 2); in main() 64 assert(static_cast<unsigned>((ymwd ).month()) == i + 2); in main() 65 assert(ymwd.year() == y); in main() 66 assert(ymwd.weekday() == Tuesday); in main() 67 assert(ymwd.index() == 2); in main() 69 assert(static_cast<unsigned>((ymwd -= months{1}).month()) == i + 1); in main() [all …]
|
D | plus_minus_equal_year.pass.cpp | 57 year_month_weekday ymwd(year{i}, January, weekday_indexed{Tuesday, 2}); in main() local 59 assert(static_cast<int>((ymwd += years{2}).year()) == i + 2); in main() 60 assert(ymwd.month() == January); in main() 61 assert(ymwd.weekday() == Tuesday); in main() 62 assert(ymwd.index() == 2); in main() 64 assert(static_cast<int>((ymwd ).year()) == i + 2); in main() 65 assert(ymwd.month() == January); in main() 66 assert(ymwd.weekday() == Tuesday); in main() 67 assert(ymwd.index() == 2); in main() 69 assert(static_cast<int>((ymwd -= years{1}).year()) == i + 1); in main() [all …]
|
D | op.sys_days.pass.cpp | 40 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main() local 41 constexpr sys_days sd{ymwd}; in main() 44 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 48 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main() local 49 constexpr sys_days sd{ymwd}; in main() 52 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 58 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main() local 59 constexpr sys_days sd{ymwd}; in main() 62 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 66 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main() local [all …]
|
D | op.local_days.pass.cpp | 40 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main() local 41 constexpr local_days sd{ymwd}; in main() 44 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 48 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main() local 49 constexpr local_days sd{ymwd}; in main() 52 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 58 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main() local 59 constexpr local_days sd{ymwd}; in main() 62 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 66 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main() local [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ |
D | ctor.sys_days.pass.cpp | 44 constexpr year_month_weekday ymwd{sd}; in main() local 46 static_assert( ymwd.ok(), ""); in main() 47 static_assert( ymwd.year() == year{1970}, ""); in main() 48 static_assert( ymwd.month() == std::chrono::January, ""); in main() 49 static_assert( ymwd.weekday() == std::chrono::Thursday, ""); in main() 50 static_assert( ymwd.index() == 1, ""); in main() 51 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Thursday, 1}, ""); in main() 52 …static_assert( ymwd == year_month_weekday{sys_days{ymwd}}, ""); // round… in main() 57 constexpr year_month_weekday ymwd{sd}; in main() local 59 static_assert( ymwd.ok(), ""); in main() [all …]
|
D | ctor.local_days.pass.cpp | 45 constexpr year_month_weekday ymwd{sd}; in main() local 47 static_assert( ymwd.ok(), ""); in main() 48 static_assert( ymwd.year() == year{1970}, ""); in main() 49 static_assert( ymwd.month() == std::chrono::January, ""); in main() 50 static_assert( ymwd.weekday() == std::chrono::Thursday, ""); in main() 51 static_assert( ymwd.index() == 1, ""); in main() 52 static_assert( ymwd.weekday_indexed() == weekday_indexed{std::chrono::Thursday, 1}, ""); in main() 53 …static_assert( ymwd == year_month_weekday{local_days{ymwd}}, ""); // round… in main() 58 constexpr year_month_weekday ymwd{sd}; in main() local 60 static_assert( ymwd.ok(), ""); in main() [all …]
|
D | plus_minus_equal_year.pass.cpp | 58 year_month_weekday ymwd(year{i}, January, weekday_indexed{Tuesday, 2}); in main() local 60 assert(static_cast<int>((ymwd += years{2}).year()) == i + 2); in main() 61 assert(ymwd.month() == January); in main() 62 assert(ymwd.weekday() == Tuesday); in main() 63 assert(ymwd.index() == 2); in main() 65 assert(static_cast<int>((ymwd ).year()) == i + 2); in main() 66 assert(ymwd.month() == January); in main() 67 assert(ymwd.weekday() == Tuesday); in main() 68 assert(ymwd.index() == 2); in main() 70 assert(static_cast<int>((ymwd -= years{1}).year()) == i + 1); in main() [all …]
|
D | plus_minus_equal_month.pass.cpp | 58 year_month_weekday ymwd(y, month{i}, weekday_indexed{Tuesday, 2}); in main() local 60 assert(static_cast<unsigned>((ymwd += months{2}).month()) == i + 2); in main() 61 assert(ymwd.year() == y); in main() 62 assert(ymwd.weekday() == Tuesday); in main() 63 assert(ymwd.index() == 2); in main() 65 assert(static_cast<unsigned>((ymwd ).month()) == i + 2); in main() 66 assert(ymwd.year() == y); in main() 67 assert(ymwd.weekday() == Tuesday); in main() 68 assert(ymwd.index() == 2); in main() 70 assert(static_cast<unsigned>((ymwd -= months{1}).month()) == i + 1); in main() [all …]
|
D | op.sys_days.pass.cpp | 41 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main() local 42 constexpr sys_days sd{ymwd}; in main() 45 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 49 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main() local 50 constexpr sys_days sd{ymwd}; in main() 53 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 59 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main() local 60 constexpr sys_days sd{ymwd}; in main() 63 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main() local [all …]
|
D | op.local_days.pass.cpp | 41 …constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; in main() local 42 constexpr local_days sd{ymwd}; in main() 45 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 49 …constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}… in main() local 50 constexpr local_days sd{ymwd}; in main() 53 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 59 … constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; in main() local 60 constexpr local_days sd{ymwd}; in main() 63 static_assert( year_month_weekday{sd} == ymwd, ""); // and back in main() 67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}}; in main() local [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ |
D | plus_minus_equal_month.pass.cpp | 57 year_month_weekday_last ymwd(y, month{i}, weekday_last{Tuesday}); in main() local 59 assert(static_cast<unsigned>((ymwd += months{2}).month()) == i + 2); in main() 60 assert(ymwd.year() == y); in main() 61 assert(ymwd.weekday() == Tuesday); in main() 63 assert(static_cast<unsigned>((ymwd ).month()) == i + 2); in main() 64 assert(ymwd.year() == y); in main() 65 assert(ymwd.weekday() == Tuesday); in main() 67 assert(static_cast<unsigned>((ymwd -= months{1}).month()) == i + 1); in main() 68 assert(ymwd.year() == y); in main() 69 assert(ymwd.weekday() == Tuesday); in main() [all …]
|
D | plus_minus_equal_year.pass.cpp | 58 year_month_weekday_last ymwd(year{i}, January, weekday_last{Tuesday}); in main() local 60 assert(static_cast<int>((ymwd += years{2}).year()) == i + 2); in main() 61 assert(ymwd.month() == January); in main() 62 assert(ymwd.weekday() == Tuesday); in main() 64 assert(static_cast<int>((ymwd ).year()) == i + 2); in main() 65 assert(ymwd.month() == January); in main() 66 assert(ymwd.weekday() == Tuesday); in main() 68 assert(static_cast<int>((ymwd -= years{1}).year()) == i + 1); in main() 69 assert(ymwd.month() == January); in main() 70 assert(ymwd.weekday() == Tuesday); in main() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ |
D | plus_minus_equal_year.pass.cpp | 57 year_month_weekday_last ymwd(year{i}, January, weekday_last{Tuesday}); in main() local 59 assert(static_cast<int>((ymwd += years{2}).year()) == i + 2); in main() 60 assert(ymwd.month() == January); in main() 61 assert(ymwd.weekday() == Tuesday); in main() 63 assert(static_cast<int>((ymwd ).year()) == i + 2); in main() 64 assert(ymwd.month() == January); in main() 65 assert(ymwd.weekday() == Tuesday); in main() 67 assert(static_cast<int>((ymwd -= years{1}).year()) == i + 1); in main() 68 assert(ymwd.month() == January); in main() 69 assert(ymwd.weekday() == Tuesday); in main() [all …]
|
D | plus_minus_equal_month.pass.cpp | 56 year_month_weekday_last ymwd(y, month{i}, weekday_last{Tuesday}); in main() local 58 assert(static_cast<unsigned>((ymwd += months{2}).month()) == i + 2); in main() 59 assert(ymwd.year() == y); in main() 60 assert(ymwd.weekday() == Tuesday); in main() 62 assert(static_cast<unsigned>((ymwd ).month()) == i + 2); in main() 63 assert(ymwd.year() == y); in main() 64 assert(ymwd.weekday() == Tuesday); in main() 66 assert(static_cast<unsigned>((ymwd -= months{1}).month()) == i + 1); in main() 67 assert(ymwd.year() == y); in main() 68 assert(ymwd.weekday() == Tuesday); in main() [all …]
|
/external/rust/crates/chrono/src/naive/ |
D | date.rs | 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() [all …]
|
/external/libcxx/include/ |
D | chrono | 502 operator+(const year_month_weekday& ymwd, const months& dm) noexcept; 504 operator+(const months& dm, const year_month_weekday& ymwd) noexcept; 506 operator+(const year_month_weekday& ymwd, const years& dy) noexcept; 508 operator+(const years& dy, const year_month_weekday& ymwd) noexcept; 510 operator-(const year_month_weekday& ymwd, const months& dm) noexcept; 512 operator-(const year_month_weekday& ymwd, const years& dy) noexcept;
|
/external/llvm-project/libcxx/include/ |
D | chrono | 501 operator+(const year_month_weekday& ymwd, const months& dm) noexcept; 503 operator+(const months& dm, const year_month_weekday& ymwd) noexcept; 505 operator+(const year_month_weekday& ymwd, const years& dy) noexcept; 507 operator+(const years& dy, const year_month_weekday& ymwd) noexcept; 509 operator-(const year_month_weekday& ymwd, const months& dm) noexcept; 511 operator-(const year_month_weekday& ymwd, const years& dy) noexcept;
|