aboutsummaryrefslogtreecommitdiffstats
path: root/util/digest/city_ut.cpp
diff options
context:
space:
mode:
authorgleb-kov <gleb-kov@yandex-team.ru>2022-02-18 11:43:49 +0300
committergleb-kov <gleb-kov@yandex-team.ru>2022-02-18 11:43:49 +0300
commitf7134d2525269ea8412b3bf0736239fbfd545a2e (patch)
treee1e6a227e5732fcf865f13fc5d7a4ff276e2971a /util/digest/city_ut.cpp
parentaf118429225479ca21bc858033203e67c0c066e3 (diff)
downloadydb-f7134d2525269ea8412b3bf0736239fbfd545a2e.tar.gz
introduce util/digest/city_ut.cpp
ref:2bd6e26cda5245c96d0b2f3c326dd13e0827c326
Diffstat (limited to 'util/digest/city_ut.cpp')
-rw-r--r--util/digest/city_ut.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/util/digest/city_ut.cpp b/util/digest/city_ut.cpp
new file mode 100644
index 0000000000..fdd2dab8ea
--- /dev/null
+++ b/util/digest/city_ut.cpp
@@ -0,0 +1,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());
+ }
+};