aboutsummaryrefslogtreecommitdiffstats
path: root/util/digest/city_ut.cpp
blob: fdd2dab8ea410f1638c0b77a1435315f35b69667 (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());
    }
};