| 19 | #include "gtest/gtest.h" |
| 20 | |
| 21 | TEST(StringHelper, EndsWith) { |
| 22 | std::string input("hello world"); |
| 23 | std::string test1("world"); |
| 24 | std::string test2("helloworld"); |
| 25 | std::string test3("hello world hello world"); |
| 26 | |
| 27 | EXPECT_TRUE(paddle::string::ends_with(input, test1)); |
| 28 | EXPECT_TRUE(paddle::string::ends_with(input, input)); |
| 29 | |
| 30 | EXPECT_FALSE(paddle::string::ends_with(input, test2)); |
| 31 | EXPECT_FALSE(paddle::string::ends_with(input, test3)); |
| 32 | } |
| 33 | |
| 34 | TEST(StringHelper, FormatStringAppend) { |
| 35 | std::string str("hello"); |
nothing calls this directly
no test coverage detected