blob: c1d979d93a4f07c3aee94fefc545dbd5a0317e2a (
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);
|