aboutsummaryrefslogtreecommitdiffstats
path: root/util/digest/city_ut.cpp
blob: a5e5644ea1cd8b51bdac9aa1cc83017a4b4236f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "city.h"

#include <library/cpp/testing/unittest/registar.h>

Y_UNIT_TEST_SUITE(TCityTest) {
    Y_UNIT_TEST(TestTemplatesCompiling) {
        TStringBuf s;
        CityHash64(s);
        CityHash64WithSeed(s, 1);
        CityHash64WithSeeds(s, 1, 2);
        CityHash128(s);
        CityHash128WithSeed(s, uint128(1, 2));
        UNIT_ASSERT(s.empty());
    }
} // Y_UNIT_TEST_SUITE(TCityTest)