Home
last modified time | relevance | path

Searched refs:month_day_last (Results 1 – 25 of 60) sorted by relevance

123

/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.syn/
Dformatter.month_day_last.pass.cpp45 check(SV("Jan/last"), SV("{}"), std::chrono::month_day_last{std::chrono::month{1}}); in test_no_chrono_specs()
46 check(SV("*Jan/last*"), SV("{:*^10}"), std::chrono::month_day_last{std::chrono::month{1}}); in test_no_chrono_specs()
47 check(SV("*Jan/last"), SV("{:*>9}"), std::chrono::month_day_last{std::chrono::month{1}}); in test_no_chrono_specs()
50 …check(SV("0 is not a valid month/last"), SV("{}"), std::chrono::month_day_last{std::chrono::month{… in test_no_chrono_specs()
51 …check(SV("*0 is not a valid month/last*"), SV("{:*^29}"), std::chrono::month_day_last{std::chrono:… in test_no_chrono_specs()
59 std::chrono::month_day_last{std::chrono::month{200}}); in test_valid_values()
62 std::chrono::month_day_last{std::chrono::month{13}}); in test_valid_values()
65 std::chrono::month_day_last{std::chrono::month{255}}); in test_valid_values()
69 std::chrono::month_day_last{std::chrono::month{0}}); in test_valid_values()
72 std::chrono::month_day_last{std::chrono::month{13}}); in test_valid_values()
[all …]
Dformatter.year_month_day_last.pass.cpp47 …std::chrono::year_month_day_last{std::chrono::year{1970}, std::chrono::month_day_last{std::chrono:… in test_no_chrono_specs()
50 …std::chrono::year_month_day_last{std::chrono::year{1970}, std::chrono::month_day_last{std::chrono:… in test_no_chrono_specs()
53 …std::chrono::year_month_day_last{std::chrono::year{1970}, std::chrono::month_day_last{std::chrono:… in test_no_chrono_specs()
58 …std::chrono::year_month_day_last{std::chrono::year{1970}, std::chrono::month_day_last{std::chrono:… in test_no_chrono_specs()
61 …std::chrono::year_month_day_last{std::chrono::year{1970}, std::chrono::month_day_last{std::chrono:… in test_no_chrono_specs()
64 …std::chrono::year_month_day_last{std::chrono::year{1970}, std::chrono::month_day_last{std::chrono:… in test_no_chrono_specs()
70 …std::chrono::year_month_day_last{std::chrono::year{-32768}, std::chrono::month_day_last{std::chron… in test_no_chrono_specs()
74 …std::chrono::year_month_day_last{std::chrono::year{-32768}, std::chrono::month_day_last{std::chron… in test_no_chrono_specs()
78 …std::chrono::year_month_day_last{std::chrono::year{-32768}, std::chrono::month_day_last{std::chron… in test_no_chrono_specs()
84 …std::chrono::year_month_day_last{std::chrono::year{-32768}, std::chrono::month_day_last{std::chron… in test_no_chrono_specs()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.mdlast/
Dostream.pass.cpp46 static std::basic_string<CharT> stream_c_locale(std::chrono::month_day_last mdl) { in stream_c_locale()
53 static std::basic_string<CharT> stream_fr_FR_locale(std::chrono::month_day_last mdl) { in stream_fr_FR_locale()
62 static std::basic_string<CharT> stream_ja_JP_locale(std::chrono::month_day_last mdl) { in stream_ja_JP_locale()
72 assert(stream_c_locale<CharT>(std::chrono::month_day_last{std::chrono::month{0}}) == in test()
74 …assert(stream_c_locale<CharT>(std::chrono::month_day_last{std::chrono::month{1}}) == SV("Jan/last"… in test()
75 …assert(stream_c_locale<CharT>(std::chrono::month_day_last{std::chrono::month{2}}) == SV("Feb/last"… in test()
76 …assert(stream_c_locale<CharT>(std::chrono::month_day_last{std::chrono::month{3}}) == SV("Mar/last"… in test()
77 …assert(stream_c_locale<CharT>(std::chrono::month_day_last{std::chrono::month{4}}) == SV("Apr/last"… in test()
78 …assert(stream_c_locale<CharT>(std::chrono::month_day_last{std::chrono::month{5}}) == SV("May/last"… in test()
79 …assert(stream_c_locale<CharT>(std::chrono::month_day_last{std::chrono::month{6}}) == SV("Jun/last"… in test()
[all …]
Dok.pass.cpp25 using month_day_last = std::chrono::month_day_last; in main() typedef
27 ASSERT_NOEXCEPT( std::declval<const month_day_last>().ok()); in main()
28 ASSERT_SAME_TYPE(bool, decltype(std::declval<const month_day_last>().ok())); in main()
30 static_assert(!month_day_last{month{}}.ok(), ""); in main()
31 static_assert( month_day_last{std::chrono::May}.ok(), ""); in main()
35 month_day_last mdl{month{i}}; in main()
42 month_day_last mdl{month{i}}; in main()
Dcomparisons.pass.cpp30 using month_day_last = std::chrono::month_day_last; in main() typedef
32 AssertComparisonsAreNoexcept<month_day_last>(); in main()
33 AssertComparisonsReturnBool<month_day_last>(); in main()
35 static_assert( testComparisonsValues<month_day_last>(month{1}, month{1}), ""); in main()
36 static_assert( testComparisonsValues<month_day_last>(month{1}, month{2}), ""); in main()
41 assert(testComparisonsValues<month_day_last>(month{i}, month{j})); in main()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dostream.pass.cpp73 std::chrono::year{0}, std::chrono::month_day_last{std::chrono::month{0}}}) == in test()
76 std::chrono::year{-32'768}, std::chrono::month_day_last{std::chrono::month{1}}}) == in test()
79 …std::chrono::year{-32'767}, std::chrono::month_day_last{std::chrono::month{2}}}) == SV("-32767/Feb… in test()
81 …std::chrono::year{0}, std::chrono::month_day_last{std::chrono::month{3}}}) == SV("0000/Mar/last")); in test()
83 …std::chrono::year{1970}, std::chrono::month_day_last{std::chrono::month{4}}}) == SV("1970/Apr/last… in test()
85 …std::chrono::year{32'767}, std::chrono::month_day_last{std::chrono::month{5}}}) == SV("32767/May/l… in test()
87 …std::chrono::year{0}, std::chrono::month_day_last{std::chrono::month{6}}}) == SV("0000/Jun/last")); in test()
89 …std::chrono::year{0}, std::chrono::month_day_last{std::chrono::month{7}}}) == SV("0000/Jul/last")); in test()
91 …std::chrono::year{0}, std::chrono::month_day_last{std::chrono::month{8}}}) == SV("0000/Aug/last")); in test()
93 …std::chrono::year{0}, std::chrono::month_day_last{std::chrono::month{9}}}) == SV("0000/Sep/last")); in test()
[all …]
Dcomparisons.pass.cpp33 using month_day_last = std::chrono::month_day_last; in main() typedef
43 year_month_day_last{year{1234}, month_day_last{January}}, in main()
44 year_month_day_last{year{1234}, month_day_last{January}}, in main()
49 year_month_day_last{year{1234}, month_day_last{January}}, in main()
50 year_month_day_last{year{1234}, month_day_last{February}}, in main()
55 year_month_day_last{year{1234}, month_day_last{January}}, in main()
56 year_month_day_last{year{1235}, month_day_last{January}}, in main()
61 year_month_day_last{year{1234}, month_day_last{January}}, in main()
62 year_month_day_last{year{1234}, month_day_last{February}}, in main()
67 year_month_day_last{year{1234}, month_day_last{February}}, in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_day_last.pass.cpp47 using month_day_last = std::chrono::month_day_last; in main() typedef
75 ASSERT_NOEXCEPT ( year{2018}/month_day_last{February}); in main()
76 ASSERT_SAME_TYPE(year_month_day_last, decltype(year{2018}/month_day_last{February})); in main()
77 ASSERT_NOEXCEPT ( month_day_last{February}/year{2018}); in main()
78 ASSERT_SAME_TYPE(year_month_day_last, decltype(month_day_last{February}/year{2018})); in main()
80 static_assert((year{2018}/month_day_last{February}).month() == February, ""); in main()
81 static_assert((year{2018}/month_day_last{February}).year() == year{2018}, ""); in main()
82 static_assert((month_day_last{February}/year{2018}).month() == February, ""); in main()
83 static_assert((month_day_last{February}/year{2018}).year() == year{2018}, ""); in main()
90 year_month_day_last ymdl1 = y/month_day_last{m}; in main()
[all …]
Dmonth_day_last.pass.cpp53 using month_day_last = std::chrono::month_day_last; in main() typedef
58 ASSERT_SAME_TYPE(month_day_last, decltype(last/February)); in main()
59 ASSERT_SAME_TYPE(month_day_last, decltype(February/last)); in main()
69 ASSERT_SAME_TYPE(month_day_last, decltype(last/February)); in main()
71 ASSERT_SAME_TYPE(month_day_last, decltype(February/last)); in main()
79 month_day_last mdl1 = last/m; in main()
80 month_day_last mdl2 = m/last; in main()
89 ASSERT_SAME_TYPE(month_day_last, decltype(last/2)); in main()
91 ASSERT_SAME_TYPE(month_day_last, decltype(2/last)); in main()
99 month_day_last mdl1 = last/i; in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.operators/
Dyear_month_day_last.pass.cpp45 using month_day_last = std::chrono::month_day_last; in main() typedef
73 ASSERT_NOEXCEPT ( year{2018}/month_day_last{February}); in main()
74 ASSERT_SAME_TYPE(year_month_day_last, decltype(year{2018}/month_day_last{February})); in main()
75 ASSERT_NOEXCEPT ( month_day_last{February}/year{2018}); in main()
76 ASSERT_SAME_TYPE(year_month_day_last, decltype(month_day_last{February}/year{2018})); in main()
78 static_assert((year{2018}/month_day_last{February}).month() == February, ""); in main()
79 static_assert((year{2018}/month_day_last{February}).year() == year{2018}, ""); in main()
80 static_assert((month_day_last{February}/year{2018}).month() == February, ""); in main()
81 static_assert((month_day_last{February}/year{2018}).year() == year{2018}, ""); in main()
88 year_month_day_last ymdl1 = y/month_day_last{m}; in main()
[all …]
Dmonth_day_last.pass.cpp46 using month_day_last = std::chrono::month_day_last; in main() typedef
51 ASSERT_SAME_TYPE(month_day_last, decltype(last/February)); in main()
52 ASSERT_SAME_TYPE(month_day_last, decltype(February/last)); in main()
62 ASSERT_SAME_TYPE(month_day_last, decltype(last/February)); in main()
64 ASSERT_SAME_TYPE(month_day_last, decltype(February/last)); in main()
72 month_day_last mdl1 = last/m; in main()
73 month_day_last mdl2 = m/last; in main()
82 ASSERT_SAME_TYPE(month_day_last, decltype(last/2)); in main()
84 ASSERT_SAME_TYPE(month_day_last, decltype(2/last)); in main()
92 month_day_last mdl1 = last/i; in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dday.pass.cpp28 using month_day_last = std::chrono::month_day_last; in main() typedef
35 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 1}}}.day() == day{31}, ""); in main()
36 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 2}}}.day() == day{29}, ""); in main()
37 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 3}}}.day() == day{31}, ""); in main()
38 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 4}}}.day() == day{30}, ""); in main()
39 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 5}}}.day() == day{31}, ""); in main()
40 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 6}}}.day() == day{30}, ""); in main()
41 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 7}}}.day() == day{31}, ""); in main()
42 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 8}}}.day() == day{31}, ""); in main()
43 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 9}}}.day() == day{30}, ""); in main()
[all …]
Dctor.pass.cpp35 using month_day_last = std::chrono::month_day_last; in main() typedef
38 ASSERT_NOEXCEPT(year_month_day_last{year{1}, month_day_last{month{1}}}); in main()
42 constexpr year_month_day_last ymdl0{year{}, month_day_last{month{}}}; in main()
45 static_assert( ymdl0.month_day_last() == month_day_last{month{}}, ""); in main()
48 constexpr year_month_day_last ymdl1{year{2019}, month_day_last{January}}; in main()
51 static_assert( ymdl1.month_day_last() == month_day_last{January}, ""); in main()
Dmonth_day_last.pass.cpp27 using month_day_last = std::chrono::month_day_last; in main() typedef
30 …ERT_NOEXCEPT( std::declval<const year_month_day_last>().month_day_last()); in main()
31 …ASSERT_SAME_TYPE(month_day_last, decltype(std::declval<const year_month_day_last>().month_day_last in main()
35 year_month_day_last ymdl(year{1234}, month_day_last{month{i}}); in main()
36 assert( static_cast<unsigned>(ymdl.month_day_last().month()) == i); in main()
Dok.pass.cpp27 using month_day_last = std::chrono::month_day_last; in main() typedef
35 static_assert(!year_month_day_last{year{-32768}, month_day_last{month{}}}.ok(), ""); // both bad in main()
36 static_assert(!year_month_day_last{year{-32768}, month_day_last{January}}.ok(), ""); // Bad year in main()
37 … static_assert(!year_month_day_last{year{2019}, month_day_last{month{}}}.ok(), ""); // Bad month in main()
38 static_assert( year_month_day_last{year{2019}, month_day_last{January}}.ok(), ""); // All OK in main()
42 year_month_day_last ym{year{2019}, month_day_last{month{i}}}; in main()
49 year_month_day_last ym{year{i}, month_day_last{January}}; in main()
Dplus_minus_equal_year.pass.cpp40 using month_day_last = std::chrono::month_day_last; in main() typedef
50 …stConstexpr<year_month_day_last, years>(year_month_day_last{year{1}, month_day_last{month{1}}}), "… in main()
54 month_day_last mdl{month{2}}; in main()
57 assert(ymdl.month_day_last() == mdl); in main()
59 assert(ymdl.month_day_last() == mdl); in main()
61 assert(ymdl.month_day_last() == mdl); in main()
63 assert(ymdl.month_day_last() == mdl); in main()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/
Dday.pass.cpp27 using month_day_last = std::chrono::month_day_last; in main() typedef
34 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 1}}}.day() == day{31}, ""); in main()
35 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 2}}}.day() == day{29}, ""); in main()
36 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 3}}}.day() == day{31}, ""); in main()
37 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 4}}}.day() == day{30}, ""); in main()
38 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 5}}}.day() == day{31}, ""); in main()
39 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 6}}}.day() == day{30}, ""); in main()
40 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 7}}}.day() == day{31}, ""); in main()
41 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 8}}}.day() == day{31}, ""); in main()
42 static_assert( year_month_day_last{year{2020}, month_day_last{month{ 9}}}.day() == day{30}, ""); in main()
[all …]
Dctor.pass.cpp34 using month_day_last = std::chrono::month_day_last; in main() typedef
37 ASSERT_NOEXCEPT(year_month_day_last{year{1}, month_day_last{month{1}}}); in main()
41 constexpr year_month_day_last ymdl0{year{}, month_day_last{month{}}}; in main()
44 static_assert( ymdl0.month_day_last() == month_day_last{month{}}, ""); in main()
47 constexpr year_month_day_last ymdl1{year{2019}, month_day_last{January}}; in main()
50 static_assert( ymdl1.month_day_last() == month_day_last{January}, ""); in main()
Dmonth_day_last.pass.cpp26 using month_day_last = std::chrono::month_day_last; in main() typedef
29 …ERT_NOEXCEPT( std::declval<const year_month_day_last>().month_day_last()); in main()
30 …ASSERT_SAME_TYPE(month_day_last, decltype(std::declval<const year_month_day_last>().month_day_last in main()
34 year_month_day_last ymdl(year{1234}, month_day_last{month{i}}); in main()
35 assert( static_cast<unsigned>(ymdl.month_day_last().month()) == i); in main()
Dok.pass.cpp26 using month_day_last = std::chrono::month_day_last; in main() typedef
34 static_assert(!year_month_day_last{year{-32768}, month_day_last{month{}}}.ok(), ""); // both bad in main()
35 static_assert(!year_month_day_last{year{-32768}, month_day_last{January}}.ok(), ""); // Bad year in main()
36 … static_assert(!year_month_day_last{year{2019}, month_day_last{month{}}}.ok(), ""); // Bad month in main()
37 static_assert( year_month_day_last{year{2019}, month_day_last{January}}.ok(), ""); // All OK in main()
41 year_month_day_last ym{year{2019}, month_day_last{month{i}}}; in main()
48 year_month_day_last ym{year{i}, month_day_last{January}}; in main()
Dplus_minus_equal_year.pass.cpp39 using month_day_last = std::chrono::month_day_last; in main() typedef
49 …stConstexpr<year_month_day_last, years>(year_month_day_last{year{1}, month_day_last{month{1}}}), "… in main()
53 month_day_last mdl{month{2}}; in main()
56 assert(ymdl.month_day_last() == mdl); in main()
58 assert(ymdl.month_day_last() == mdl); in main()
60 assert(ymdl.month_day_last() == mdl); in main()
62 assert(ymdl.month_day_last() == mdl); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dcomparisons.pass.cpp34 using month_day_last = std::chrono::month_day_last; in main() typedef
44 year_month_day_last{year{1234}, month_day_last{January}}, in main()
45 year_month_day_last{year{1234}, month_day_last{January}}, in main()
50 year_month_day_last{year{1234}, month_day_last{January}}, in main()
51 year_month_day_last{year{1234}, month_day_last{February}}, in main()
56 year_month_day_last{year{1234}, month_day_last{January}}, in main()
57 year_month_day_last{year{1235}, month_day_last{January}}, in main()
62 year_month_day_last{year{1234}, month_day_last{January}}, in main()
63 year_month_day_last{year{1234}, month_day_last{February}}, in main()
68 year_month_day_last{year{1234}, month_day_last{February}}, in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/include/__chrono/
Dmonthday.h88 class month_day_last {
92 _LIBCPP_HIDE_FROM_ABI explicit constexpr month_day_last(const chrono::month& __val) noexcept in month_day_last() function
99 bool operator==(const month_day_last& __lhs, const month_day_last& __rhs) noexcept
103 operator<=>(const month_day_last& __lhs, const month_day_last& __rhs) noexcept {
108 month_day_last operator/(const month& __lhs, last_spec) noexcept
109 { return month_day_last{__lhs}; }
112 month_day_last operator/(last_spec, const month& __rhs) noexcept
113 { return month_day_last{__rhs}; }
116 month_day_last operator/(int __lhs, last_spec) noexcept
117 { return month_day_last{month(__lhs)}; }
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/
Dok.pass.cpp26 using month_day_last = std::chrono::month_day_last; in main() typedef
28 ASSERT_NOEXCEPT( std::declval<const month_day_last>().ok()); in main()
29 ASSERT_SAME_TYPE(bool, decltype(std::declval<const month_day_last>().ok())); in main()
31 static_assert(!month_day_last{month{}}.ok(), ""); in main()
32 static_assert( month_day_last{std::chrono::May}.ok(), ""); in main()
36 month_day_last mdl{month{i}}; in main()
43 month_day_last mdl{month{i}}; in main()
Dcomparisons.pass.cpp31 using month_day_last = std::chrono::month_day_last; in main() typedef
33 AssertComparisons6AreNoexcept<month_day_last>(); in main()
34 AssertComparisons6ReturnBool<month_day_last>(); in main()
36 static_assert( testComparisons6Values<month_day_last>(month{1}, month{1}), ""); in main()
37 static_assert( testComparisons6Values<month_day_last>(month{1}, month{2}), ""); in main()
42 assert((testComparisons6Values<month_day_last>(month{i}, month{j}))); in main()

123