Lines Matching defs:rhs
363 AStruct(const AStruct& rhs)
364 : x(rhs.x), y(rhs.y), z(rhs.z.value()), p(rhs.p) {}
2243 vector<int> rhs;
2244 rhs.push_back(1);
2245 rhs.push_back(2);
2246 rhs.push_back(3);
2247 const Matcher<const vector<int>&> m = Pointwise(IsHalfOf(), rhs);
2260 list<signed char> rhs;
2261 rhs.push_back(2);
2262 rhs.push_back(4);
2265 const Matcher<const int(&)[2]> m = Pointwise(IsHalfOf(), rhs);
2268 // Changing rhs now shouldn't affect m, which made a copy of rhs.
2269 rhs.push_back(6);
2275 vector<int> rhs;
2276 rhs.push_back(2);
2277 rhs.push_back(4);
2278 rhs.push_back(6);
2279 EXPECT_THAT(lhs, Pointwise(Lt(), rhs));
2280 EXPECT_THAT(lhs, Not(Pointwise(Gt(), rhs)));
2284 const int rhs[] = {1, 2, 3};
2289 EXPECT_THAT(lhs, Pointwise(Gt(), rhs));
2290 EXPECT_THAT(lhs, Not(Pointwise(Lt(), rhs)));
2295 vector<bool> rhs(3, false);
2296 rhs[1] = true;
2297 vector<bool> lhs = rhs;
2298 EXPECT_THAT(lhs, Pointwise(Eq(), rhs));
2299 rhs[0] = true;
2300 EXPECT_THAT(lhs, Not(Pointwise(Eq(), rhs)));
2311 const int rhs[1] = {0};
2312 EXPECT_THAT(lhs, Not(Pointwise(Gt(), rhs)));
2313 EXPECT_EQ("which contains 2 values", Explain(Pointwise(Gt(), rhs), lhs));
2321 const int rhs[3] = {2, 6, 4};
2322 EXPECT_THAT(lhs, Not(Pointwise(IsHalfOf(), rhs)));
2326 Explain(Pointwise(IsHalfOf(), rhs), lhs));
2331 const int rhs[3] = {2, 4, 6};
2332 EXPECT_THAT(lhs, Pointwise(IsHalfOf(), rhs));
2333 EXPECT_EQ("", Explain(Pointwise(IsHalfOf(), rhs), lhs));
2338 const int rhs[3] = {2, 4, 6};
2340 EXPECT_THAT(lhs, Pointwise(m1, rhs));
2341 EXPECT_EQ("", Explain(Pointwise(m1, rhs), lhs));
2346 EXPECT_THAT(lhs, Pointwise(m2, rhs));
2347 EXPECT_EQ("", Explain(Pointwise(m2, rhs), lhs));
2362 vector<int> rhs;
2363 rhs.push_back(1);
2364 rhs.push_back(2);
2365 rhs.push_back(3);
2366 const Matcher<const vector<int>&> m = UnorderedPointwise(IsHalfOf(), rhs);
2388 list<signed char> rhs;
2389 rhs.push_back(2);
2390 rhs.push_back(4);
2393 const Matcher<const int(&)[2]> m = UnorderedPointwise(IsHalfOf(), rhs);
2396 // Changing rhs now shouldn't affect m, which made a copy of rhs.
2397 rhs.push_back(6);
2403 vector<int> rhs;
2404 rhs.push_back(4);
2405 rhs.push_back(6);
2406 rhs.push_back(2);
2407 EXPECT_THAT(lhs, UnorderedPointwise(Lt(), rhs));
2408 EXPECT_THAT(lhs, Not(UnorderedPointwise(Gt(), rhs)));
2412 const int rhs[] = {1, 2, 3};
2417 EXPECT_THAT(lhs, UnorderedPointwise(Gt(), rhs));
2418 EXPECT_THAT(lhs, Not(UnorderedPointwise(Lt(), rhs)));
2429 const int rhs[1] = {0};
2430 EXPECT_THAT(lhs, Not(UnorderedPointwise(Gt(), rhs)));
2432 Explain(UnorderedPointwise(Gt(), rhs), lhs));
2440 const int rhs[3] = {2, 6, 6};
2441 EXPECT_THAT(lhs, Not(UnorderedPointwise(IsHalfOf(), rhs)));
2445 Explain(UnorderedPointwise(IsHalfOf(), rhs), lhs));
2450 const int rhs[3] = {2, 4, 6};
2451 EXPECT_THAT(lhs, UnorderedPointwise(IsHalfOf(), rhs));
2456 const int rhs[3] = {6, 4, 2};
2457 EXPECT_THAT(lhs, UnorderedPointwise(IsHalfOf(), rhs));
2462 const int rhs[3] = {4, 6, 2};
2464 EXPECT_THAT(lhs, UnorderedPointwise(m1, rhs));
2469 EXPECT_THAT(lhs, UnorderedPointwise(m2, rhs));