Home
last modified time | relevance | path

Searched refs:ymwd (Results 1 – 9 of 9) sorted by relevance

/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dctor.sys_days.pass.cpp44 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 …]
Dctor.local_days.pass.cpp45 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 …]
Dplus_minus_equal_month.pass.cpp58 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 …]
Dplus_minus_equal_year.pass.cpp58 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 …]
Dop.sys_days.pass.cpp41 …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 …]
Dop.local_days.pass.cpp41 …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/
Dplus_minus_equal_month.pass.cpp57 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 …]
Dplus_minus_equal_year.pass.cpp58 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/libcxx/include/
Dchrono502 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;