/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/ |
D | minus.pass.cpp | 32 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::years{10}; in testConstexprYears() 34 ym1.year() == std::chrono::year{1234-10} in testConstexprYears() 35 && ym1.month() == std::chrono::January in testConstexprYears() 36 && ym1.weekday() == std::chrono::Tuesday in testConstexprYears() 37 && ym1.index() == 1 in testConstexprYears() 44 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::months{6}; in testConstexprMonths() 46 ym1.year() == std::chrono::year{1234} in testConstexprMonths() 47 && ym1.month() == std::chrono::May in testConstexprMonths() 48 && ym1.weekday() == std::chrono::Tuesday in testConstexprMonths() 49 && ym1.index() == 1 in testConstexprMonths() [all …]
|
D | plus.pass.cpp | 80 year_month_weekday ym1 = ym + months{i}; in main() 82 assert(static_cast<int>(ym1.year()) == 1234); in main() 84 assert(ym1.month() == month(1 + i)); in main() 86 assert(ym1.weekday() == Tuesday); in main() 88 assert(ym1.index() == 3); in main() 90 assert(ym1 == ym2); in main() 106 year_month_weekday ym1 = ym + years{i}; in main() 108 assert(static_cast<int>(ym1.year()) == i + 1234); in main() 110 assert(ym1.month() == January); in main() 112 assert(ym1.weekday() == Tuesday); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/ |
D | minus.pass.cpp | 35 std::chrono::year_month_day_last ym1 = ymdl - std::chrono::years{10}; in testConstexprYears() 37 ym1.year() == std::chrono::year{static_cast<int>(ymdl.year()) - 10} in testConstexprYears() 38 && ym1.month() == ymdl.month() in testConstexprYears() 44 std::chrono::year_month_day_last ym1 = ymdl - std::chrono::months{6}; in testConstexprMonths() 46 ym1.year() == ymdl.year() in testConstexprMonths() 47 && ym1.month() == std::chrono::month{static_cast<unsigned>(ymdl.month()) - 6} in testConstexprMonths() 70 year_month_day_last ym1 = ym - years{i}; in main() 71 assert(static_cast<int>(ym1.year()) == 1234 - i); in main() 72 assert(ym1.month() == December); in main() 85 year_month_day_last ym1 = ym - months{i}; in main() [all …]
|
D | plus.pass.cpp | 90 year_month_day_last ym1 = ym + months{i}; in main() 92 assert(static_cast<int>(ym1.year()) == 1234); in main() 94 assert(ym1.month() == month(1 + i)); in main() 96 assert(ym1 == ym2); in main() 112 year_month_day_last ym1 = ym + years{i}; in main() 114 assert(static_cast<int>(ym1.year()) == i + 1234); in main() 116 assert(ym1.month() == std::chrono::January); in main() 118 assert(ym1 == ym2); in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/ |
D | minus.pass.cpp | 67 year_month_weekday_last ym1 = ym - years{i}; in main() 68 assert(ym1.year() == year{1234 - i}); in main() 69 assert(ym1.month() == October); in main() 70 assert(ym1.weekday() == Tuesday); in main() 71 assert(ym1.weekday_last() == weekday_last{Tuesday}); in main() 85 year_month_weekday_last ym1 = ym - months{i}; in main() 86 assert(ym1.year() == year{1234}); in main() 87 assert(ym1.month() == month{10 - i}); in main() 88 assert(ym1.weekday() == Tuesday); in main() 89 assert(ym1.weekday_last() == weekday_last{Tuesday}); in main()
|
D | plus.pass.cpp | 76 year_month_weekday_last ym1 = ym + months{i}; in main() 78 assert(ym1.year() == year(1234)); in main() 80 assert(ym1.month() == month(1 + i)); in main() 82 assert(ym1.weekday() == Tuesday); in main() 84 assert(ym1.weekday_last() == weekday_last{Tuesday}); in main() 86 assert(ym1 == ym2); in main() 102 year_month_weekday_last ym1 = ym + years{i}; in main() 104 assert(ym1.year() == year(1234 + i)); in main() 106 assert(ym1.month() == January); in main() 108 assert(ym1.weekday() == Tuesday); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/ |
D | minus.pass.cpp | 29 std::chrono::year_month_day ym1 = ym0 - std::chrono::years{10}; in test_constexpr() 31 ym1.year() == std::chrono::year{1234-10} in test_constexpr() 32 && ym1.month() == std::chrono::January in test_constexpr() 33 && ym1.day() == std::chrono::day{12} in test_constexpr() 55 year_month_day ym1 = ym - years{i}; in main() 56 assert(static_cast<int>(ym1.year()) == 1234 - i); in main() 57 assert(ym1.month() == January); in main() 58 assert(ym1.day() == day{10}); in main()
|
D | plus.pass.cpp | 76 year_month_day ym1 = ym + months{i}; in main() 78 assert(static_cast<int>(ym1.year()) == 1234); in main() 80 assert(ym1.month() == month(1 + i)); in main() 82 assert(ym1.day() == day{12}); in main() 84 assert(ym1 == ym2); in main() 100 year_month_day ym1 = ym + years{i}; in main() 102 assert(static_cast<int>(ym1.year()) == i + 1234); in main() 104 assert(ym1.month() == std::chrono::January); in main() 106 assert(ym1.day() == day{12}); in main() 108 assert(ym1 == ym2); in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ |
D | ctor.pass.cpp | 56 constexpr year_month_weekday ym1{year{2019}, January, weekday_indexed{Tuesday, 1}}; in main() local 57 static_assert( ym1.year() == year{2019}, ""); in main() 58 static_assert( ym1.month() == January, ""); in main() 59 static_assert( ym1.weekday() == Tuesday, ""); in main() 60 static_assert( ym1.index() == 1, ""); in main() 61 static_assert( ym1.weekday_indexed() == weekday_indexed{Tuesday, 1}, ""); in main() 62 static_assert( ym1.ok(), ""); in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ |
D | ctor.pass.cpp | 45 constexpr year_month_weekday_last ym1{year{2019}, January, weekday_last{Tuesday}}; in main() local 46 static_assert( ym1.year() == year{2019}, ""); in main() 47 static_assert( ym1.month() == January, ""); in main() 48 static_assert( ym1.weekday() == Tuesday, ""); in main() 49 static_assert( ym1.weekday_last() == weekday_last{Tuesday}, ""); in main() 50 static_assert( ym1.ok(), ""); in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/ |
D | plus.pass.cpp | 75 year_month ym1 = ym + years{i}; in main() 77 assert(static_cast<int>(ym1.year()) == i + 1234); in main() 79 assert(ym1.month() == std::chrono::January); in main() 81 assert(ym1 == ym2); in main() 97 year_month ym1 = ym + months{i}; in main() 99 assert(static_cast<int>(ym1.year()) == 1234); in main() 101 assert(ym1.month() == month(1 + i)); in main() 103 assert(ym1 == ym2); in main()
|
D | minus.pass.cpp | 50 year_month ym1 = ym - years{i}; in main() 51 assert(static_cast<int>(ym1.year()) == 1234 - i); in main() 52 assert(ym1.month() == std::chrono::January); in main() 65 year_month ym1 = ym - months{i}; in main() 66 assert(static_cast<int>(ym1.year()) == 1234); in main() 67 assert(ym1.month() == month(11 - i)); in main()
|
/external/libkmsxx/kms++util/src/ |
D | testpat.cpp | 25 const unsigned ym1 = mw; in get_test_pattern_pixel() local 29 if (x == xm1 || x == xm2 || y == ym1 || y == ym2) in get_test_pattern_pixel() 32 else if (x < xm1 && y < ym1) in get_test_pattern_pixel() 35 else if ((x == 0 || x == w - 1) && (y < ym1 || y > ym2)) in get_test_pattern_pixel() 41 else if (x < xm1 && (y > ym1 && y < ym2)) in get_test_pattern_pixel() 44 else if (y < ym1 && (x > xm1 && x < xm2)) in get_test_pattern_pixel() 47 else if (x > xm2 && (y > ym1 && y < ym2)) in get_test_pattern_pixel() 53 else if (x > xm1 && x < xm2 && y > ym1 && y < ym2) { in get_test_pattern_pixel() 64 unsigned c = (y - ym1 - 1) % 256; in get_test_pattern_pixel()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ |
D | ctor.pass.cpp | 50 constexpr year_month_day ym1{year{2019}, January, day{12}}; in main() local 51 static_assert( ym1.year() == year{2019}, ""); in main() 52 static_assert( ym1.month() == January, ""); in main() 53 static_assert( ym1.day() == day{12}, ""); in main() 54 static_assert( ym1.ok(), ""); in main()
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/ |
D | ctor.pass.cpp | 43 constexpr year_month ym1{year{2018}, std::chrono::January}; in main() local 44 static_assert( ym1.year() == year{2018}, ""); in main() 45 static_assert( ym1.month() == std::chrono::January, ""); in main() 46 static_assert( ym1.ok(), ""); in main()
|