Home
last modified time | relevance | path

Searched refs:ym (Results 1 – 25 of 120) sorted by relevance

12345

/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dplus_minus_equal_year.pass.cpp55 year_month_day ym(year{i}, m, d); in main() local
56 assert(static_cast<int>((ym += years{2}).year()) == i + 2); in main()
57 assert(ym.month() == m); in main()
58 assert(ym.day() == d); in main()
59 assert(static_cast<int>((ym ).year()) == i + 2); in main()
60 assert(ym.month() == m); in main()
61 assert(ym.day() == d); in main()
62 assert(static_cast<int>((ym -= years{1}).year()) == i + 1); in main()
63 assert(ym.month() == m); in main()
64 assert(ym.day() == d); in main()
[all …]
Dplus_minus_equal_month.pass.cpp55 year_month_day ym(y, month{i}, d); in main() local
56 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
57 assert(ym.year() == y); in main()
58 assert(ym.day() == d); in main()
59 assert(static_cast<unsigned>((ym ).month()) == i + 2); in main()
60 assert(ym.year() == y); in main()
61 assert(ym.day() == d); in main()
62 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
63 assert(ym.year() == y); in main()
64 assert(ym.day() == d); in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dplus_minus_equal_year.pass.cpp56 year_month_day ym(year{i}, m, d); in main() local
57 assert(static_cast<int>((ym += years{2}).year()) == i + 2); in main()
58 assert(ym.month() == m); in main()
59 assert(ym.day() == d); in main()
60 assert(static_cast<int>((ym ).year()) == i + 2); in main()
61 assert(ym.month() == m); in main()
62 assert(ym.day() == d); in main()
63 assert(static_cast<int>((ym -= years{1}).year()) == i + 1); in main()
64 assert(ym.month() == m); in main()
65 assert(ym.day() == d); in main()
[all …]
Dplus_minus_equal_month.pass.cpp56 year_month_day ym(y, month{i}, d); in main() local
57 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
58 assert(ym.year() == y); in main()
59 assert(ym.day() == d); in main()
60 assert(static_cast<unsigned>((ym ).month()) == i + 2); in main()
61 assert(ym.year() == y); in main()
62 assert(ym.day() == d); in main()
63 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
64 assert(ym.year() == y); in main()
65 assert(ym.day() == d); in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/
Dplus.pass.cpp35 constexpr bool testConstexprYears(std::chrono::year_month ym) in testConstexprYears() argument
38 if (static_cast<int>((ym ).year()) != 1) return false; in testConstexprYears()
39 if (static_cast<int>((ym + offset).year()) != 24) return false; in testConstexprYears()
40 if (static_cast<int>((offset + ym).year()) != 24) return false; in testConstexprYears()
45 constexpr bool testConstexprMonths(std::chrono::year_month ym) in testConstexprMonths() argument
48 if (static_cast<unsigned>((ym ).month()) != 1) return false; in testConstexprMonths()
49 if (static_cast<unsigned>((ym + offset).month()) != 7) return false; in testConstexprMonths()
50 if (static_cast<unsigned>((offset + ym).month()) != 7) return false; in testConstexprMonths()
72 year_month ym{year{1234}, std::chrono::January}; in main() local
75 year_month ym1 = ym + years{i}; in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dplus.pass.cpp35 constexpr bool testConstexprYears(std::chrono::year_month_day ym) in testConstexprYears() argument
38 if (static_cast<int>((ym ).year()) != 1) return false; in testConstexprYears()
39 if (static_cast<int>((ym + offset).year()) != 24) return false; in testConstexprYears()
40 if (static_cast<int>((offset + ym).year()) != 24) return false; in testConstexprYears()
45 constexpr bool testConstexprMonths(std::chrono::year_month_day ym) in testConstexprMonths() argument
48 if (static_cast<unsigned>((ym ).month()) != 1) return false; in testConstexprMonths()
49 if (static_cast<unsigned>((ym + offset).month()) != 7) return false; in testConstexprMonths()
50 if (static_cast<unsigned>((offset + ym).month()) != 7) return false; in testConstexprMonths()
73 year_month_day ym{year{1234}, std::chrono::January, day{12}}; in main() local
76 year_month_day ym1 = ym + months{i}; in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dplus.pass.cpp34 constexpr bool testConstexprYears(std::chrono::year_month_day ym) in testConstexprYears() argument
37 if (static_cast<int>((ym ).year()) != 1) return false; in testConstexprYears()
38 if (static_cast<int>((ym + offset).year()) != 24) return false; in testConstexprYears()
39 if (static_cast<int>((offset + ym).year()) != 24) return false; in testConstexprYears()
44 constexpr bool testConstexprMonths(std::chrono::year_month_day ym) in testConstexprMonths() argument
47 if (static_cast<unsigned>((ym ).month()) != 1) return false; in testConstexprMonths()
48 if (static_cast<unsigned>((ym + offset).month()) != 7) return false; in testConstexprMonths()
49 if (static_cast<unsigned>((offset + ym).month()) != 7) return false; in testConstexprMonths()
72 year_month_day ym{year{1234}, std::chrono::January, day{12}}; in main() local
75 year_month_day ym1 = ym + months{i}; in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dplus.pass.cpp35 constexpr bool testConstexprYears(std::chrono::year_month_weekday ym) in testConstexprYears() argument
38 if (static_cast<int>((ym ).year()) != 1) return false; in testConstexprYears()
39 if (static_cast<int>((ym + offset).year()) != 24) return false; in testConstexprYears()
40 if (static_cast<int>((offset + ym).year()) != 24) return false; in testConstexprYears()
45 constexpr bool testConstexprMonths(std::chrono::year_month_weekday ym) in testConstexprMonths() argument
48 if (static_cast<unsigned>((ym ).month()) != 1) return false; in testConstexprMonths()
49 if (static_cast<unsigned>((ym + offset).month()) != 7) return false; in testConstexprMonths()
50 if (static_cast<unsigned>((offset + ym).month()) != 7) return false; in testConstexprMonths()
77 year_month_weekday ym{year{1234}, January, weekday_indexed{Tuesday, 3}}; in main() local
80 year_month_weekday ym1 = ym + months{i}; in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dplus.pass.cpp34 constexpr bool testConstexprYears(std::chrono::year_month_weekday ym) in testConstexprYears() argument
37 if (static_cast<int>((ym ).year()) != 1) return false; in testConstexprYears()
38 if (static_cast<int>((ym + offset).year()) != 24) return false; in testConstexprYears()
39 if (static_cast<int>((offset + ym).year()) != 24) return false; in testConstexprYears()
44 constexpr bool testConstexprMonths(std::chrono::year_month_weekday ym) in testConstexprMonths() argument
47 if (static_cast<unsigned>((ym ).month()) != 1) return false; in testConstexprMonths()
48 if (static_cast<unsigned>((ym + offset).month()) != 7) return false; in testConstexprMonths()
49 if (static_cast<unsigned>((offset + ym).month()) != 7) return false; in testConstexprMonths()
76 year_month_weekday ym{year{1234}, January, weekday_indexed{Tuesday, 3}}; in main() local
79 year_month_weekday ym1 = ym + months{i}; in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/
Dplus.pass.cpp32 constexpr bool testConstexprYears(std::chrono::year_month_weekday_last ym) in testConstexprYears() argument
35 if (static_cast<int>((ym ).year()) != 1) return false; in testConstexprYears()
36 if (static_cast<int>((ym + offset).year()) != 24) return false; in testConstexprYears()
37 if (static_cast<int>((offset + ym).year()) != 24) return false; in testConstexprYears()
41 constexpr bool testConstexprMonths(std::chrono::year_month_weekday_last ym) in testConstexprMonths() argument
44 if (static_cast<unsigned>((ym ).month()) != 1) return false; in testConstexprMonths()
45 if (static_cast<unsigned>((ym + offset).month()) != 7) return false; in testConstexprMonths()
46 if (static_cast<unsigned>((offset + ym).month()) != 7) return false; in testConstexprMonths()
73 year_month_weekday_last ym{year{1234}, January, weekday_last{Tuesday}}; in main() local
76 year_month_weekday_last ym1 = ym + months{i}; in main()
[all …]
Dminus.pass.cpp28 constexpr bool testConstexprYears(std::chrono::year_month_weekday_last ym) in testConstexprYears() argument
31 if (static_cast<int>((ym ).year()) != 66) return false; in testConstexprYears()
32 if (static_cast<int>((ym - offset).year()) != 52) return false; in testConstexprYears()
36 constexpr bool testConstexprMonths(std::chrono::year_month_weekday_last ym) in testConstexprMonths() argument
39 if (static_cast<unsigned>((ym ).month()) != 10) return false; in testConstexprMonths()
40 if (static_cast<unsigned>((ym - offset).month()) != 4) return false; in testConstexprMonths()
64 year_month_weekday_last ym{year{1234}, October, weekday_last{Tuesday}}; in main() local
67 year_month_weekday_last ym1 = ym - years{i}; in main()
82 year_month_weekday_last ym{year{1234}, October, weekday_last{Tuesday}}; in main() local
85 year_month_weekday_last ym1 = ym - months{i}; in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/
Dplus.pass.cpp31 constexpr bool testConstexprYears(std::chrono::year_month_weekday_last ym) in testConstexprYears() argument
34 if (static_cast<int>((ym ).year()) != 1) return false; in testConstexprYears()
35 if (static_cast<int>((ym + offset).year()) != 24) return false; in testConstexprYears()
36 if (static_cast<int>((offset + ym).year()) != 24) return false; in testConstexprYears()
40 constexpr bool testConstexprMonths(std::chrono::year_month_weekday_last ym) in testConstexprMonths() argument
43 if (static_cast<unsigned>((ym ).month()) != 1) return false; in testConstexprMonths()
44 if (static_cast<unsigned>((ym + offset).month()) != 7) return false; in testConstexprMonths()
45 if (static_cast<unsigned>((offset + ym).month()) != 7) return false; in testConstexprMonths()
72 year_month_weekday_last ym{year{1234}, January, weekday_last{Tuesday}}; in main() local
75 year_month_weekday_last ym1 = ym + months{i}; in main()
[all …]
Dminus.pass.cpp26 constexpr bool testConstexprYears(std::chrono::year_month_weekday_last ym) in testConstexprYears() argument
29 if (static_cast<int>((ym ).year()) != 66) return false; in testConstexprYears()
30 if (static_cast<int>((ym - offset).year()) != 52) return false; in testConstexprYears()
34 constexpr bool testConstexprMonths(std::chrono::year_month_weekday_last ym) in testConstexprMonths() argument
37 if (static_cast<unsigned>((ym ).month()) != 10) return false; in testConstexprMonths()
38 if (static_cast<unsigned>((ym - offset).month()) != 4) return false; in testConstexprMonths()
62 year_month_weekday_last ym{year{1234}, October, weekday_last{Tuesday}}; in main() local
65 year_month_weekday_last ym1 = ym - years{i}; in main()
80 year_month_weekday_last ym{year{1234}, October, weekday_last{Tuesday}}; in main() local
83 year_month_weekday_last ym1 = ym - months{i}; in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/
Dplus_minus_equal_year.pass.cpp55 year_month ym(year{i}, m); in main() local
56 assert(static_cast<int>((ym += years{2}).year()) == i + 2); in main()
57 assert(ym.month() == m); in main()
58 assert(static_cast<int>((ym ).year()) == i + 2); in main()
59 assert(ym.month() == m); in main()
60 assert(static_cast<int>((ym -= years{1}).year()) == i + 1); in main()
61 assert(ym.month() == m); in main()
62 assert(static_cast<int>((ym ).year()) == i + 1); in main()
63 assert(ym.month() == m); in main()
Dplus_minus_equal_month.pass.cpp54 year_month ym(y, month{i}); in main() local
55 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
56 assert(ym.year() == y); in main()
57 assert(static_cast<unsigned>((ym ).month()) == i + 2); in main()
58 assert(ym.year() == y); in main()
59 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
60 assert(ym.year() == y); in main()
61 assert(static_cast<unsigned>((ym ).month()) == i + 1); in main()
62 assert(ym.year() == y); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/
Dplus_minus_equal_year.pass.cpp54 year_month ym(year{i}, m); in main() local
55 assert(static_cast<int>((ym += years{2}).year()) == i + 2); in main()
56 assert(ym.month() == m); in main()
57 assert(static_cast<int>((ym ).year()) == i + 2); in main()
58 assert(ym.month() == m); in main()
59 assert(static_cast<int>((ym -= years{1}).year()) == i + 1); in main()
60 assert(ym.month() == m); in main()
61 assert(static_cast<int>((ym ).year()) == i + 1); in main()
62 assert(ym.month() == m); in main()
Dplus_minus_equal_month.pass.cpp53 year_month ym(y, month{i}); in main() local
54 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
55 assert(ym.year() == y); in main()
56 assert(static_cast<unsigned>((ym ).month()) == i + 2); in main()
57 assert(ym.year() == y); in main()
58 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
59 assert(ym.year() == y); in main()
60 assert(static_cast<unsigned>((ym ).month()) == i + 1); in main()
61 assert(ym.year() == y); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dplus_minus_equal_month.pass.cpp56 year_month_day_last ym(y, mdl); in main() local
57 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
58 assert(ym.year() == y); in main()
59 assert(static_cast<unsigned>((ym ).month()) == i + 2); in main()
60 assert(ym.year() == y); in main()
61 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
62 assert(ym.year() == y); in main()
63 assert(static_cast<unsigned>((ym ).month()) == i + 1); in main()
64 assert(ym.year() == y); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dplus_minus_equal_month.pass.cpp55 year_month_day_last ym(y, mdl); in main() local
56 assert(static_cast<unsigned>((ym += months{2}).month()) == i + 2); in main()
57 assert(ym.year() == y); in main()
58 assert(static_cast<unsigned>((ym ).month()) == i + 2); in main()
59 assert(ym.year() == y); in main()
60 assert(static_cast<unsigned>((ym -= months{1}).month()) == i + 1); in main()
61 assert(ym.year() == y); in main()
62 assert(static_cast<unsigned>((ym ).month()) == i + 1); in main()
63 assert(ym.year() == y); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dok.pass.cpp53 year_month_weekday ym{year{2019}, January, weekday_indexed{Tuesday, i}}; in main() local
54 assert((ym.ok() == weekday_indexed{Tuesday, i}.ok())); in main()
59 year_month_weekday ym{year{2019}, January, weekday_indexed{weekday{i}, 1}}; in main() local
60 assert((ym.ok() == weekday_indexed{weekday{i}, 1}.ok())); in main()
65 year_month_weekday ym{year{2019}, month{i}, weekday_indexed{Tuesday, 1}}; in main() local
66 assert((ym.ok() == month{i}.ok())); in main()
72 year_month_weekday ym{year{i}, January, weekday_indexed{Tuesday, 1}}; in main() local
73 assert((ym.ok() == year{i}.ok())); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dok.pass.cpp51 year_month_weekday_last ym{year{2019}, January, weekday_last{Tuesday}}; in main() local
52 assert((ym.ok() == weekday_last{Tuesday}.ok())); in main()
57 year_month_weekday_last ym{year{2019}, January, weekday_last{weekday{i}}}; in main() local
58 assert((ym.ok() == weekday_last{weekday{i}}.ok())); in main()
63 year_month_weekday_last ym{year{2019}, month{i}, weekday_last{Tuesday}}; in main() local
64 assert((ym.ok() == month{i}.ok())); in main()
70 year_month_weekday_last ym{year{i}, January, weekday_last{Tuesday}}; in main() local
71 assert((ym.ok() == year{i}.ok())); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/
Dok.pass.cpp50 year_month_weekday_last ym{year{2019}, January, weekday_last{Tuesday}}; in main() local
51 assert((ym.ok() == weekday_last{Tuesday}.ok())); in main()
56 year_month_weekday_last ym{year{2019}, January, weekday_last{weekday{i}}}; in main() local
57 assert((ym.ok() == weekday_last{weekday{i}}.ok())); in main()
62 year_month_weekday_last ym{year{2019}, month{i}, weekday_last{Tuesday}}; in main() local
63 assert((ym.ok() == month{i}.ok())); in main()
69 year_month_weekday_last ym{year{i}, January, weekday_last{Tuesday}}; in main() local
70 assert((ym.ok() == year{i}.ok())); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month.pass.cpp45 year_month ym = year{i}/month{j}; in main()
46 assert(static_cast<int>(ym.year()) == i); in main()
47 assert(static_cast<unsigned>(ym.month()) == j); in main()
62 year_month ym = year{i}/j; in main()
63 assert(static_cast<int>(ym.year()) == i); in main()
64 assert(static_cast<unsigned>(ym.month()) == j); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month.pass.cpp46 year_month ym = year{i}/month{j}; in main()
47 assert(static_cast<int>(ym.year()) == i); in main()
48 assert(static_cast<unsigned>(ym.month()) == j); in main()
63 year_month ym = year{i}/j; in main()
64 assert(static_cast<int>(ym.year()) == i); in main()
65 assert(static_cast<unsigned>(ym.month()) == j); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/
Dplus.pass.cpp48 year_month ym{year{1234}, std::chrono::January}; in test_ym_plus_y() local
50 year_month ym1 = ym + years{i}; in test_ym_plus_y()
51 year_month ym2 = years{i} + ym; in test_ym_plus_y()
72 year_month ym{year{1234}, std::chrono::January}; in test_ym_plus_m() local
74 year_month ym1 = ym + months{i}; in test_ym_plus_m()
75 year_month ym2 = months{i} + ym; in test_ym_plus_m()
84 year_month ym1 = ym + months{i}; in test_ym_plus_m()
85 year_month ym2 = months{i} + ym; in test_ym_plus_m()

12345