| 367 | // TStringBuf must be template parameter otherwise compilation of assertions fails. |
| 368 | template <typename TStringBuf = TStringBuf, typename T = std::string_view, decltype(T().contains(T())) = false> |
| 369 | void TestContainsImpl(int) { |
| 370 | UNIT_ASSERT(TStringBuf("123").contains("12")); |
| 371 | UNIT_ASSERT(!TStringBuf("123").contains("21")); |
| 372 | } |
| 373 | |
| 374 | void TestContainsImpl(...) { |
| 375 | // Do nothing. |