Lines Matching full:issubstring
130 using testing::IsSubstring;
2506 // Tests for ::testing::IsSubstring().
2508 // Tests that IsSubstring() returns the correct result when the input
2511 EXPECT_FALSE(IsSubstring("", "", NULL, "a"));
2512 EXPECT_FALSE(IsSubstring("", "", "b", NULL));
2513 EXPECT_FALSE(IsSubstring("", "", "needle", "haystack"));
2515 EXPECT_TRUE(IsSubstring("", "", static_cast<const char*>(NULL), NULL));
2516 EXPECT_TRUE(IsSubstring("", "", "needle", "two needles"));
2519 // Tests that IsSubstring() returns the correct result when the input
2522 EXPECT_FALSE(IsSubstring("", "", kNull, L"a"));
2523 EXPECT_FALSE(IsSubstring("", "", L"b", kNull));
2524 EXPECT_FALSE(IsSubstring("", "", L"needle", L"haystack"));
2526 EXPECT_TRUE(IsSubstring("", "", static_cast<const wchar_t*>(NULL), NULL));
2527 EXPECT_TRUE(IsSubstring("", "", L"needle", L"two needles"));
2530 // Tests that IsSubstring() generates the correct message when the input
2537 IsSubstring("needle_expr", "haystack_expr",
2541 // Tests that IsSubstring returns the correct result when the input
2544 EXPECT_TRUE(IsSubstring("", "", std::string("hello"), "ahellob"));
2545 EXPECT_FALSE(IsSubstring("", "", "hello", std::string("world")));
2549 // Tests that IsSubstring returns the correct result when the input
2552 EXPECT_TRUE(IsSubstring("", "", ::std::wstring(L"needle"), L"two needles"));
2553 EXPECT_FALSE(IsSubstring("", "", L"needle", ::std::wstring(L"haystack")));
2556 // Tests that IsSubstring() generates the correct message when the input
2563 IsSubstring(
3369 EXPECT_PRED_FORMAT2(testing::IsSubstring, "some fatal failure",
3371 EXPECT_PRED_FORMAT2(testing::IsSubstring, "it does",
3388 EXPECT_PRED_FORMAT2(testing::IsSubstring, "some fatal failure",
3390 EXPECT_PRED_FORMAT2(testing::IsSubstring, "it does",
3392 EXPECT_PRED_FORMAT2(testing::IsSubstring, "other failure",
3407 EXPECT_PRED_FORMAT2(testing::IsSubstring, "foo",
3409 EXPECT_PRED_FORMAT2(testing::IsSubstring, "my message",
5242 EXPECT_PRED_FORMAT2(IsSubstring, expected_help_fragment, captured_stdout);