Home
last modified time | relevance | path

Searched refs:weekday_indexed (Results 1 – 25 of 70) sorted by relevance

123

/external/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/
Dcomparisons.pass.cpp29 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
31 AssertComparisons2AreNoexcept<weekday_indexed>(); in main()
32 AssertComparisons2ReturnBool<weekday_indexed>(); in main()
34 static_assert( (weekday_indexed{} == weekday_indexed{}), ""); in main()
35 static_assert(!(weekday_indexed{} != weekday_indexed{}), ""); in main()
37 static_assert(!(weekday_indexed{} == weekday_indexed{std::chrono::Tuesday, 1}), ""); in main()
38 static_assert( (weekday_indexed{} != weekday_indexed{std::chrono::Tuesday, 1}), ""); in main()
41 static_assert( (weekday_indexed{weekday{1}, 2} == weekday_indexed{weekday{1}, 2}), ""); in main()
42 static_assert(!(weekday_indexed{weekday{1}, 2} != weekday_indexed{weekday{1}, 2}), ""); in main()
44 static_assert(!(weekday_indexed{weekday{1}, 2} == weekday_indexed{weekday{1}, 1}), ""); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/
Dcomparisons.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
30 AssertComparisons2AreNoexcept<weekday_indexed>(); in main()
31 AssertComparisons2ReturnBool<weekday_indexed>(); in main()
33 static_assert( (weekday_indexed{} == weekday_indexed{}), ""); in main()
34 static_assert(!(weekday_indexed{} != weekday_indexed{}), ""); in main()
36 static_assert(!(weekday_indexed{} == weekday_indexed{std::chrono::Tuesday, 1}), ""); in main()
37 static_assert( (weekday_indexed{} != weekday_indexed{std::chrono::Tuesday, 1}), ""); in main()
40 static_assert( (weekday_indexed{weekday{1}, 2} == weekday_indexed{weekday{1}, 2}), ""); in main()
41 static_assert(!(weekday_indexed{weekday{1}, 2} != weekday_indexed{weekday{1}, 2}), ""); in main()
43 static_assert(!(weekday_indexed{weekday{1}, 2} == weekday_indexed{weekday{1}, 1}), ""); in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dcomparisons.pass.cpp30 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
42 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
43 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
48 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
49 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 2}}, in main()
54 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
55 year_month_weekday{year{1234}, February, weekday_indexed{Tuesday, 1}}, in main()
60 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
61 year_month_weekday{year{1235}, January, weekday_indexed{Tuesday, 1}}, in main()
67 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dcomparisons.pass.cpp29 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
41 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
42 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
47 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
48 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 2}}, in main()
53 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
54 year_month_weekday{year{1234}, February, weekday_indexed{Tuesday, 1}}, in main()
59 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
60 year_month_weekday{year{1235}, January, weekday_indexed{Tuesday, 1}}, in main()
66 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dok.pass.cpp29 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
46 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{}}.ok(), ""); /… in main()
48 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
49 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
50 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{} }.ok(), ""); /… in main()
52 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
53 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{} }.ok(), ""); /… in main()
54 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{} }.ok(), ""); /… in main()
56 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{Tuesday, static_cast<unsi… in main()
57 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{Wednesday, 0}}.ok(), "");… in main()
[all …]
Dweekday_indexed.pass.cpp27 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
30 …RT_NOEXCEPT( std::declval<const year_month_weekday>().weekday_indexed()); in main()
31 …ASSERT_SAME_TYPE(weekday_indexed, decltype(std::declval<const year_month_weekday>().weekday_indexe… in main()
33 static_assert( year_month_weekday{}.weekday_indexed() == weekday_indexed{}, ""); in main()
37 year_month_weekday ymwd0(year{1234}, month{2}, weekday_indexed{weekday{i}, 1}); in main()
38 assert( ymwd0.weekday_indexed().weekday().c_encoding() == (i == 7 ? 0 : i)); in main()
39 assert( static_cast<unsigned>(ymwd0.weekday_indexed().index()) == 1); in main()
41 year_month_weekday ymwd1(year{1234}, month{2}, weekday_indexed{weekday{2}, i}); in main()
42 assert( ymwd1.weekday_indexed().weekday().c_encoding() == 2); in main()
43 assert( static_cast<unsigned>(ymwd1.weekday_indexed().index()) == i); in main()
Dctor.pass.cpp38 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
45 ASSERT_NOEXCEPT(year_month_weekday{year{1}, month{1}, weekday_indexed{Tuesday, 1}}); in main()
52 static_assert( ym0.weekday_indexed() == weekday_indexed{}, ""); in main()
55 constexpr year_month_weekday ym1{year{2019}, January, weekday_indexed{Tuesday, 1}}; in main()
60 static_assert( ym1.weekday_indexed() == weekday_indexed{Tuesday, 1}, ""); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/
Dcomparisons.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
38 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
39 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
43 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
44 month_weekday{std::chrono::January, weekday_indexed{Sunday, 2}}, in main()
48 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
49 month_weekday{std::chrono::February, weekday_indexed{Sunday, 1}}, in main()
53 month_weekday{std::chrono::January, weekday_indexed{Monday, 1}}, in main()
54 month_weekday{std::chrono::January, weekday_indexed{Sunday, 2}}, in main()
58 month_weekday{std::chrono::January, weekday_indexed{Monday, 1}}, in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/
Dcomparisons.pass.cpp29 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
39 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
40 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
44 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
45 month_weekday{std::chrono::January, weekday_indexed{Sunday, 2}}, in main()
49 month_weekday{std::chrono::January, weekday_indexed{Sunday, 1}}, in main()
50 month_weekday{std::chrono::February, weekday_indexed{Sunday, 1}}, in main()
54 month_weekday{std::chrono::January, weekday_indexed{Monday, 1}}, in main()
55 month_weekday{std::chrono::January, weekday_indexed{Sunday, 2}}, in main()
59 month_weekday{std::chrono::January, weekday_indexed{Monday, 1}}, in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/
Dweekday_indexed.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
31 …RT_NOEXCEPT( std::declval<const year_month_weekday>().weekday_indexed()); in main()
32 …ASSERT_SAME_TYPE(weekday_indexed, decltype(std::declval<const year_month_weekday>().weekday_indexe… in main()
34 static_assert( year_month_weekday{}.weekday_indexed() == weekday_indexed{}, ""); in main()
38 year_month_weekday ymwd0(year{1234}, month{2}, weekday_indexed{weekday{i}, 1}); in main()
39 assert( static_cast<unsigned>(ymwd0.weekday_indexed().weekday()) == i); in main()
40 assert( static_cast<unsigned>(ymwd0.weekday_indexed().index()) == 1); in main()
41 year_month_weekday ymwd1(year{1234}, month{2}, weekday_indexed{weekday{2}, i}); in main()
42 assert( static_cast<unsigned>(ymwd1.weekday_indexed().weekday()) == 2); in main()
43 assert( static_cast<unsigned>(ymwd1.weekday_indexed().index()) == i); in main()
Dok.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
39 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{}}.ok(), ""); /… in main()
41 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
42 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
43 …static_assert(!year_month_weekday{year{2019}, January, weekday_indexed{} }.ok(), ""); /… in main()
45 …static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
46 …static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{} }.ok(), ""); /… in main()
47 …static_assert(!year_month_weekday{year{-32768}, January, weekday_indexed{} }.ok(), ""); /… in main()
49 …static_assert( year_month_weekday{year{2019}, January, weekday_indexed{Tuesday, 1}}.ok(), ""); /… in main()
53 year_month_weekday ym{year{2019}, January, weekday_indexed{Tuesday, i}}; in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.members/
Dweekday_indexed.pass.cpp27 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
31 … ASSERT_NOEXCEPT( std::declval<const month_weekday>().weekday_indexed()); in main()
32 …ASSERT_SAME_TYPE(weekday_indexed, decltype(std::declval<const month_weekday>().weekday_indexed())); in main()
34 …static_assert( month_weekday{month{}, weekday_indexed{}}.weekday_indexed() == weekday_indexed{}, "… in main()
38 month_weekday md(std::chrono::March, weekday_indexed{Sunday, i}); in main()
39 assert( static_cast<unsigned>(md.weekday_indexed().weekday() == Sunday)); in main()
40 assert( static_cast<unsigned>(md.weekday_indexed().index() == i)); in main()
Dctor.pass.cpp32 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
34 ASSERT_NOEXCEPT(month_weekday{month{1}, weekday_indexed{weekday{}, 1}}); in main()
36 constexpr month_weekday md0{month{}, weekday_indexed{}}; in main()
38 static_assert( md0.weekday_indexed() == weekday_indexed{}, ""); in main()
41 constexpr month_weekday md1{std::chrono::January, weekday_indexed{std::chrono::Friday, 4}}; in main()
43 static_assert( md1.weekday_indexed() == weekday_indexed{std::chrono::Friday, 4}, ""); in main()
Dok.pass.cpp27 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
34 static_assert(!month_weekday{month{}, weekday_indexed{}}.ok(), ""); in main()
35 static_assert( month_weekday{std::chrono::May, weekday_indexed{Sunday, 2}}.ok(), ""); in main()
37 assert(!(month_weekday(std::chrono::April, weekday_indexed{Sunday, 0}).ok())); in main()
38 assert( (month_weekday{std::chrono::March, weekday_indexed{Sunday, 1}}.ok())); in main()
43 month_weekday mwd{month{i}, weekday_indexed{Sunday, j}}; in main()
49 assert(!(month_weekday{month{13}, weekday_indexed{Sunday, i}}.ok())); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.members/
Dweekday_indexed.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
32 … ASSERT_NOEXCEPT( std::declval<const month_weekday>().weekday_indexed()); in main()
33 …ASSERT_SAME_TYPE(weekday_indexed, decltype(std::declval<const month_weekday>().weekday_indexed())); in main()
35 …static_assert( month_weekday{month{}, weekday_indexed{}}.weekday_indexed() == weekday_indexed{}, "… in main()
39 month_weekday md(std::chrono::March, weekday_indexed{Sunday, i}); in main()
40 assert( static_cast<unsigned>(md.weekday_indexed().weekday() == Sunday)); in main()
41 assert( static_cast<unsigned>(md.weekday_indexed().index() == i)); in main()
Dctor.pass.cpp33 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
35 ASSERT_NOEXCEPT(month_weekday{month{1}, weekday_indexed{weekday{}, 1}}); in main()
37 constexpr month_weekday md0{month{}, weekday_indexed{}}; in main()
39 static_assert( md0.weekday_indexed() == weekday_indexed{}, ""); in main()
42 constexpr month_weekday md1{std::chrono::January, weekday_indexed{std::chrono::Friday, 4}}; in main()
44 static_assert( md1.weekday_indexed() == weekday_indexed{std::chrono::Friday, 4}, ""); in main()
Dok.pass.cpp28 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
35 static_assert(!month_weekday{month{}, weekday_indexed{}}.ok(), ""); in main()
36 static_assert( month_weekday{std::chrono::May, weekday_indexed{Sunday, 2}}.ok(), ""); in main()
38 assert(!(month_weekday(std::chrono::April, weekday_indexed{Sunday, 0}).ok())); in main()
39 assert( (month_weekday{std::chrono::March, weekday_indexed{Sunday, 1}}.ok())); in main()
44 month_weekday mwd{month{i}, weekday_indexed{Sunday, j}}; in main()
50 assert(!(month_weekday{month{13}, weekday_indexed{Sunday, i}}.ok())); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.members/
Dok.pass.cpp26 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
28 ASSERT_NOEXCEPT( std::declval<const weekday_indexed>().ok()); in main()
29 ASSERT_SAME_TYPE(bool, decltype(std::declval<const weekday_indexed>().ok())); in main()
31 static_assert(!weekday_indexed{}.ok(), ""); in main()
32 static_assert( weekday_indexed{std::chrono::Sunday, 2}.ok(), ""); in main()
34 assert(!(weekday_indexed(std::chrono::Tuesday, 0).ok())); in main()
37 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
43 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
48 assert(!(weekday_indexed(weekday{9U}, 1).ok())); in main()
Dctor.pass.cpp33 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
35 ASSERT_NOEXCEPT(weekday_indexed{}); in main()
36 ASSERT_NOEXCEPT(weekday_indexed(weekday{1}, 1)); in main()
38 constexpr weekday_indexed wdi0{}; in main()
43 constexpr weekday_indexed wdi1{std::chrono::Sunday, 2}; in main()
50 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
58 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
Dweekday.pass.cpp26 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
28 … ASSERT_NOEXCEPT( std::declval<const weekday_indexed>().weekday()); in main()
29 … ASSERT_SAME_TYPE(std::chrono::weekday, decltype(std::declval<const weekday_indexed>().weekday())); in main()
31 static_assert( weekday_indexed{}.weekday() == weekday{}, ""); in main()
32 static_assert( weekday_indexed{std::chrono::Tuesday, 0}.weekday() == std::chrono::Tuesday, ""); in main()
36 weekday_indexed wdi(weekday{i}, 2); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.wdidx/time.cal.wdidx.members/
Dok.pass.cpp25 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
27 ASSERT_NOEXCEPT( std::declval<const weekday_indexed>().ok()); in main()
28 ASSERT_SAME_TYPE(bool, decltype(std::declval<const weekday_indexed>().ok())); in main()
30 static_assert(!weekday_indexed{}.ok(), ""); in main()
31 static_assert( weekday_indexed{std::chrono::Sunday, 2}.ok(), ""); in main()
33 assert(!(weekday_indexed(std::chrono::Tuesday, 0).ok())); in main()
36 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
42 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
47 assert(!(weekday_indexed(weekday{9U}, 1).ok())); in main()
Dctor.pass.cpp32 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
34 ASSERT_NOEXCEPT(weekday_indexed{}); in main()
35 ASSERT_NOEXCEPT(weekday_indexed(weekday{1}, 1)); in main()
37 constexpr weekday_indexed wdi0{}; in main()
42 constexpr weekday_indexed wdi1{std::chrono::Sunday, 2}; in main()
49 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
57 weekday_indexed wdi(std::chrono::Tuesday, i); in main()
Dweekday.pass.cpp25 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
27 … ASSERT_NOEXCEPT( std::declval<const weekday_indexed>().weekday()); in main()
28 … ASSERT_SAME_TYPE(std::chrono::weekday, decltype(std::declval<const weekday_indexed>().weekday())); in main()
30 static_assert( weekday_indexed{}.weekday() == weekday{}, ""); in main()
31 static_assert( weekday_indexed{std::chrono::Tuesday, 0}.weekday() == std::chrono::Tuesday, ""); in main()
35 weekday_indexed wdi(weekday{i}, 2); in main()
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dmonth_weekday.pass.cpp53 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
68 static_assert(wdi.weekday_indexed() == Tuesday[3], ""); in main()
76 weekday_indexed wdi = weekday{j}[k]; in main()
80 assert(mwd1.weekday_indexed() == wdi); in main()
82 assert(mwd2.weekday_indexed() == wdi); in main()
98 static_assert(wdi.weekday_indexed() == Tuesday[3], ""); in main()
105 weekday_indexed wdi = weekday{j}[k]; in main()
109 assert(mwd1.weekday_indexed() == wdi); in main()
111 assert(mwd2.weekday_indexed() == wdi); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dmonth_weekday.pass.cpp52 using weekday_indexed = std::chrono::weekday_indexed; in main() typedef
67 static_assert(wdi.weekday_indexed() == Tuesday[3], ""); in main()
75 weekday_indexed wdi = weekday{j}[k]; in main()
79 assert(mwd1.weekday_indexed() == wdi); in main()
81 assert(mwd2.weekday_indexed() == wdi); in main()
97 static_assert(wdi.weekday_indexed() == Tuesday[3], ""); in main()
104 weekday_indexed wdi = weekday{j}[k]; in main()
108 assert(mwd1.weekday_indexed() == wdi); in main()
110 assert(mwd2.weekday_indexed() == wdi); in main()

123