aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/charset/ci_string_ut.cpp
blob: 3d2a53d5fe443e92515023e30743ee0a409e09c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "ci_string.h"

#include <util/generic/hash.h>
#include <util/generic/string_ut.h>

class TCaseStringTest: public TTestBase, private TStringTestImpl<TCiString, TTestData<char>> {
public:
    void TestSpecial() {
        TCiString ss = Data._0123456(); // type 'TCiString' is used as is
        size_t hash_val = ComputeHash(ss);
        UNIT_ASSERT(hash_val == 1489244);
    }

public:
    UNIT_TEST_SUITE(TCaseStringTest);
    UNIT_TEST(TestOperators);
    UNIT_TEST(TestOperatorsCI);

    UNIT_TEST(TestSpecial);
    UNIT_TEST_SUITE_END();
};

UNIT_TEST_SUITE_REGISTRATION(TCaseStringTest);