Home
last modified time | relevance | path

Searched refs:ym2 (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/
Dplus.pass.cpp51 year_month ym2 = years{i} + ym; in test_ym_plus_y()
53 assert(static_cast<int>(ym2.year()) == i + 1234); in test_ym_plus_y()
55 assert(ym2.month() == std::chrono::January); in test_ym_plus_y()
56 assert(ym1 == ym2); in test_ym_plus_y()
75 year_month ym2 = months{i} + ym; in test_ym_plus_m()
77 assert(static_cast<int>(ym2.year()) == 1234); in test_ym_plus_m()
79 assert(ym2.month() == month(1 + i)); in test_ym_plus_m()
80 assert(ym1 == ym2); in test_ym_plus_m()
85 year_month ym2 = months{i} + ym; in test_ym_plus_m()
87 assert(static_cast<int>(ym2.year()) == 1235); in test_ym_plus_m()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dplus.pass.cpp81 year_month_weekday ym2 = months{i} + ym; in main()
83 assert(static_cast<int>(ym2.year()) == 1234); in main()
85 assert(ym2.month() == month(1 + i)); in main()
87 assert(ym2.weekday() == Tuesday); in main()
89 assert(ym2.index() == 3); in main()
90 assert(ym1 == ym2); in main()
107 year_month_weekday ym2 = years{i} + ym; in main()
109 assert(static_cast<int>(ym2.year()) == i + 1234); in main()
111 assert(ym2.month() == January); in main()
113 assert(ym2.weekday() == Tuesday); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dplus.pass.cpp80 year_month_weekday ym2 = months{i} + ym; in main()
82 assert(static_cast<int>(ym2.year()) == 1234); in main()
84 assert(ym2.month() == month(1 + i)); in main()
86 assert(ym2.weekday() == Tuesday); in main()
88 assert(ym2.index() == 3); in main()
89 assert(ym1 == ym2); in main()
106 year_month_weekday ym2 = years{i} + ym; in main()
108 assert(static_cast<int>(ym2.year()) == i + 1234); in main()
110 assert(ym2.month() == January); in main()
112 assert(ym2.weekday() == Tuesday); in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/
Dplus.pass.cpp77 year_month_weekday_last ym2 = months{i} + ym; in main()
79 assert(ym2.year() == year(1234)); in main()
81 assert(ym2.month() == month(1 + i)); in main()
83 assert(ym2.weekday() == Tuesday); in main()
85 assert(ym2.weekday_last() == weekday_last{Tuesday}); in main()
86 assert(ym1 == ym2); in main()
103 year_month_weekday_last ym2 = years{i} + ym; in main()
105 assert(ym2.year() == year(1234 + i)); in main()
107 assert(ym2.month() == January); in main()
109 assert(ym2.weekday() == Tuesday); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/
Dplus.pass.cpp76 year_month_weekday_last ym2 = months{i} + ym; in main()
78 assert(ym2.year() == year(1234)); in main()
80 assert(ym2.month() == month(1 + i)); in main()
82 assert(ym2.weekday() == Tuesday); in main()
84 assert(ym2.weekday_last() == weekday_last{Tuesday}); in main()
85 assert(ym1 == ym2); in main()
102 year_month_weekday_last ym2 = years{i} + ym; in main()
104 assert(ym2.year() == year(1234 + i)); in main()
106 assert(ym2.month() == January); in main()
108 assert(ym2.weekday() == Tuesday); in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dplus.pass.cpp77 year_month_day ym2 = months{i} + ym; in main()
79 assert(static_cast<int>(ym2.year()) == 1234); in main()
81 assert(ym2.month() == month(1 + i)); in main()
83 assert(ym2.day() == day{12}); in main()
84 assert(ym1 == ym2); in main()
101 year_month_day ym2 = years{i} + ym; in main()
103 assert(static_cast<int>(ym2.year()) == i + 1234); in main()
105 assert(ym2.month() == std::chrono::January); in main()
107 assert(ym2.day() == day{12}); in main()
108 assert(ym1 == ym2); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dplus.pass.cpp76 year_month_day ym2 = months{i} + ym; in main()
78 assert(static_cast<int>(ym2.year()) == 1234); in main()
80 assert(ym2.month() == month(1 + i)); in main()
82 assert(ym2.day() == day{12}); in main()
83 assert(ym1 == ym2); in main()
100 year_month_day ym2 = years{i} + ym; in main()
102 assert(static_cast<int>(ym2.year()) == i + 1234); in main()
104 assert(ym2.month() == std::chrono::January); in main()
106 assert(ym2.day() == day{12}); in main()
107 assert(ym1 == ym2); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/
Dplus.pass.cpp76 year_month ym2 = years{i} + ym; in main()
78 assert(static_cast<int>(ym2.year()) == i + 1234); in main()
80 assert(ym2.month() == std::chrono::January); in main()
81 assert(ym1 == ym2); in main()
98 year_month ym2 = months{i} + ym; in main()
100 assert(static_cast<int>(ym2.year()) == 1234); in main()
102 assert(ym2.month() == month(1 + i)); in main()
103 assert(ym1 == ym2); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dplus.pass.cpp90 year_month_day_last ym2 = months{i} + ym; in main()
92 assert(static_cast<int>(ym2.year()) == 1234); in main()
94 assert(ym2.month() == month(1 + i)); in main()
95 assert(ym1 == ym2); in main()
112 year_month_day_last ym2 = years{i} + ym; in main()
114 assert(static_cast<int>(ym2.year()) == i + 1234); in main()
116 assert(ym2.month() == std::chrono::January); in main()
117 assert(ym1 == ym2); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dplus.pass.cpp91 year_month_day_last ym2 = months{i} + ym; in main()
93 assert(static_cast<int>(ym2.year()) == 1234); in main()
95 assert(ym2.month() == month(1 + i)); in main()
96 assert(ym1 == ym2); in main()
113 year_month_day_last ym2 = years{i} + ym; in main()
115 assert(static_cast<int>(ym2.year()) == i + 1234); in main()
117 assert(ym2.month() == std::chrono::January); in main()
118 assert(ym1 == ym2); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/
Dctor.pass.cpp48 constexpr year_month ym2{year{2018}, month{}}; in main() local
49 static_assert( ym2.year() == year{2018}, ""); in main()
50 static_assert( ym2.month() == month{}, ""); in main()
51 static_assert(!ym2.ok(), ""); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/
Dctor.pass.cpp47 constexpr year_month ym2{year{2018}, month{}}; in main() local
48 static_assert( ym2.year() == year{2018}, ""); in main()
49 static_assert( ym2.month() == month{}, ""); in main()
50 static_assert(!ym2.ok(), ""); in main()
/external/libkmsxx/kms++util/src/
Dtestpat.cpp28 const unsigned ym2 = h - mw - 1; in get_test_pattern_pixel() local
31 if (x == xm1 || x == xm2 || y == ym1 || y == ym2) in get_test_pattern_pixel()
37 else if ((x == 0 || x == w - 1) && (y < ym1 || y > ym2)) in get_test_pattern_pixel()
43 else if (x < xm1 && (y > ym1 && y < ym2)) in get_test_pattern_pixel()
49 else if (x > xm2 && (y > ym1 && y < ym2)) in get_test_pattern_pixel()
52 else if (y > ym2 && (x > xm1 && x < xm2)) in get_test_pattern_pixel()
55 else if (x > xm1 && x < xm2 && y > ym1 && y < ym2) { in get_test_pattern_pixel()