Lines Matching refs:T2

49     typedef std::tuple<short> T2;  in test()  typedef
50 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::strong_ordering); in test()
51 assert((T1(1) <=> T2(1)) == std::strong_ordering::equal); in test()
52 assert((T1(1) <=> T2(0)) == std::strong_ordering::greater); in test()
53 assert((T1(1) <=> T2(2)) == std::strong_ordering::less); in test()
57 typedef std::tuple<short, unsigned long> T2; in test() typedef
58 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::strong_ordering); in test()
59 assert((T1(1, 2) <=> T2(1, 2)) == std::strong_ordering::equal); in test()
60 assert((T1(1, 2) <=> T2(0, 2)) == std::strong_ordering::greater); in test()
61 assert((T1(1, 2) <=> T2(2, 2)) == std::strong_ordering::less); in test()
62 assert((T1(1, 2) <=> T2(1, 1)) == std::strong_ordering::greater); in test()
63 assert((T1(1, 2) <=> T2(1, 3)) == std::strong_ordering::less); in test()
67 typedef std::tuple<short, long, unsigned int> T2; in test() typedef
68 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::strong_ordering); in test()
69 assert((T1(1, 2, 3) <=> T2(1, 2, 3)) == std::strong_ordering::equal); in test()
70 assert((T1(1, 2, 3) <=> T2(0, 2, 3)) == std::strong_ordering::greater); in test()
71 assert((T1(1, 2, 3) <=> T2(2, 2, 3)) == std::strong_ordering::less); in test()
72 assert((T1(1, 2, 3) <=> T2(1, 1, 3)) == std::strong_ordering::greater); in test()
73 assert((T1(1, 2, 3) <=> T2(1, 3, 3)) == std::strong_ordering::less); in test()
74 assert((T1(1, 2, 3) <=> T2(1, 2, 2)) == std::strong_ordering::greater); in test()
75 assert((T1(1, 2, 3) <=> T2(1, 2, 4)) == std::strong_ordering::less); in test()
80 typedef std::tuple<double> T2; in test() typedef
81 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::partial_ordering); in test()
82 assert((T1(1) <=> T2(1)) == std::partial_ordering::equivalent); in test()
83 assert((T1(1) <=> T2(0.9)) == std::partial_ordering::greater); in test()
84 assert((T1(1) <=> T2(1.1)) == std::partial_ordering::less); in test()
88 typedef std::tuple<double, unsigned int> T2; in test() typedef
89 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::partial_ordering); in test()
90 assert((T1(1, 2) <=> T2(1, 2)) == std::partial_ordering::equivalent); in test()
91 assert((T1(1, 2) <=> T2(0.9, 2)) == std::partial_ordering::greater); in test()
92 assert((T1(1, 2) <=> T2(1.1, 2)) == std::partial_ordering::less); in test()
93 assert((T1(1, 2) <=> T2(1, 1)) == std::partial_ordering::greater); in test()
94 assert((T1(1, 2) <=> T2(1, 3)) == std::partial_ordering::less); in test()
98 typedef std::tuple<double, long, unsigned int> T2; in test() typedef
99 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::partial_ordering); in test()
100 assert((T1(1, 2, 3) <=> T2(1, 2, 3)) == std::partial_ordering::equivalent); in test()
101 assert((T1(1, 2, 3) <=> T2(0.9, 2, 3)) == std::partial_ordering::greater); in test()
102 assert((T1(1, 2, 3) <=> T2(1.1, 2, 3)) == std::partial_ordering::less); in test()
103 assert((T1(1, 2, 3) <=> T2(1, 1, 3)) == std::partial_ordering::greater); in test()
104 assert((T1(1, 2, 3) <=> T2(1, 3, 3)) == std::partial_ordering::less); in test()
105 assert((T1(1, 2, 3) <=> T2(1, 2, 2)) == std::partial_ordering::greater); in test()
106 assert((T1(1, 2, 3) <=> T2(1, 2, 4)) == std::partial_ordering::less); in test()
110 typedef std::tuple<double> T2; in test() typedef
113 assert((T1(nan) <=> T2(nan)) == std::partial_ordering::unordered); in test()
117 typedef std::tuple<float, float> T2; in test() typedef
119 assert((T1(nan, 2) <=> T2(nan, 2)) == std::partial_ordering::unordered); in test()
120 assert((T1(1, nan) <=> T2(1, nan)) == std::partial_ordering::unordered); in test()
124 typedef std::tuple<double, double, float> T2; in test() typedef
126 assert((T1(nan, 2, 3) <=> T2(nan, 2, 3)) == std::partial_ordering::unordered); in test()
127 assert((T1(1, nan, 3) <=> T2(1, nan, 3)) == std::partial_ordering::unordered); in test()
128 assert((T1(1, 2, nan) <=> T2(1, 2, nan)) == std::partial_ordering::unordered); in test()
133 typedef std::tuple<int, long, unsigned short> T2; in test() typedef
135 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::strong_ordering); in test()
144 typedef std::tuple<int, unsigned long, WeakSpaceship> T2; in test() typedef
146 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
150 typedef std::tuple<double, long, WeakSpaceship> T2; in test() typedef
153 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::partial_ordering); in test()
162 typedef std::tuple<int, unsigned long, NoSpaceship> T2; in test() typedef
164 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
172 typedef std::tuple<int, unsigned long, SpaceshipNoEquals> T2; in test() typedef
174 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
181 typedef std::tuple<short, unsigned long, CustomSpaceship> T2; in test() typedef
185 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
190 typedef std::tuple<long, unsigned int> T2; in test() typedef
193 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
203 typedef std::tuple<int> T2; in test() typedef
205 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::partial_ordering); in test()
206 assert((T1(nan) <=> T2(1)) == std::partial_ordering::unordered); in test()
210 typedef std::tuple<int, int> T2; in test() typedef
212 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::partial_ordering); in test()
213 assert((T1(nan, 2) <=> T2(1, 2)) == std::partial_ordering::unordered); in test()
214 assert((T1(1, nan) <=> T2(1, 2)) == std::partial_ordering::unordered); in test()
218 typedef std::tuple<int, int, int> T2; in test() typedef
220 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::partial_ordering); in test()
221 assert((T1(nan, 2, 3) <=> T2(1, 2, 3)) == std::partial_ordering::unordered); in test()
222 assert((T1(1, nan, 3) <=> T2(1, 2, 3)) == std::partial_ordering::unordered); in test()
223 assert((T1(1, 2, nan) <=> T2(1, 2, 3)) == std::partial_ordering::unordered); in test()