city_ut.cpp 372 B

123456789101112131415
  1. #include "city.h"
  2. #include <library/cpp/testing/unittest/registar.h>
  3. Y_UNIT_TEST_SUITE(TCityTest) {
  4. Y_UNIT_TEST(TestTemplatesCompiling) {
  5. TStringBuf s;
  6. CityHash64(s);
  7. CityHash64WithSeed(s, 1);
  8. CityHash64WithSeeds(s, 1, 2);
  9. CityHash128(s);
  10. CityHash128WithSeed(s, uint128(1, 2));
  11. UNIT_ASSERT(s.empty());
  12. }
  13. }