ci_string_ut.cpp 601 B

1234567891011121314151617181920212223
  1. #include "ci_string.h"
  2. #include <util/generic/hash.h>
  3. #include <util/generic/string_ut.h>
  4. class TCaseStringTest: public TTestBase, private TStringTestImpl<TCiString, TTestData<char>> {
  5. public:
  6. void TestSpecial() {
  7. TCiString ss = Data._0123456(); // type 'TCiString' is used as is
  8. size_t hash_val = ComputeHash(ss);
  9. UNIT_ASSERT(hash_val == 1489244);
  10. }
  11. public:
  12. UNIT_TEST_SUITE(TCaseStringTest);
  13. UNIT_TEST(TestOperators);
  14. UNIT_TEST(TestOperatorsCI);
  15. UNIT_TEST(TestSpecial);
  16. UNIT_TEST_SUITE_END();
  17. };
  18. UNIT_TEST_SUITE_REGISTRATION(TCaseStringTest);