aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/public/udf/tz/udf_tz_ut.cpp
blob: b6f0510bcba5a5ae5e264b3e85f2c98af0afb9b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "udf_tz.h"

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

using namespace NYql::NUdf;

Y_UNIT_TEST_SUITE(TUdfTz) {
    Y_UNIT_TEST(Count) {
        UNIT_ASSERT_VALUES_EQUAL_C(GetTimezones().size(), 600, "Please run arcadia/ydb/library/yql/public/udf/tz/gen");
    }

    Y_UNIT_TEST(Gmt) {
        UNIT_ASSERT(GetTimezones().size() > 0);
        UNIT_ASSERT_VALUES_EQUAL(GetTimezones()[0], "GMT");
    }
}