Lines Matching refs:T1
48 typedef std::tuple<long> T1; 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()
56 typedef std::tuple<long, unsigned int> T1; 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()
66 typedef std::tuple<long, int, unsigned short> T1; 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()
79 typedef std::tuple<long> T1; 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()
87 typedef std::tuple<long, float> T1; 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()
97 typedef std::tuple<short, float, double> T1; 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()
109 typedef std::tuple<float> T1; in test() typedef
113 assert((T1(nan) <=> T2(nan)) == std::partial_ordering::unordered); in test()
116 typedef std::tuple<double, double> T1; 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()
123 typedef std::tuple<double, float, float> T1; 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()
132 typedef std::tuple<long, int, unsigned int> T1; in test() typedef
135 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::strong_ordering); in test()
143 typedef std::tuple<int, unsigned int, WeakSpaceship> T1; in test() typedef
146 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
149 typedef std::tuple<unsigned int, int, WeakSpaceship> T1; in test() typedef
153 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::partial_ordering); in test()
161 typedef std::tuple<int, unsigned int, NoSpaceship> T1; in test() typedef
164 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
171 typedef std::tuple<int, unsigned int, SpaceshipNoEquals> T1; in test() typedef
174 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
180 typedef std::tuple<int, unsigned int, CustomSpaceship> T1; in test() typedef
185 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
189 typedef std::tuple<long, int> T1; in test() typedef
193 ASSERT_SAME_TYPE(decltype(T1() <=> T2()), std::weak_ordering); in test()
202 typedef std::tuple<double> T1; 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()
209 typedef std::tuple<double, double> T1; 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()
217 typedef std::tuple<double, double, double> T1; 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()