File tree Expand file tree Collapse file tree 6 files changed +18
-21
lines changed Expand file tree Collapse file tree 6 files changed +18
-21
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ struct TCollectionImpl {
12
12
inline bool Consume (const T* b, const T* e, const T*) {
13
13
if (b < e) {
14
14
Words.push_back (std::span<const T>(b, e));
15
- Keys.push_back (FnvHash<ui64>(( const char *)b , (e - b) * sizeof (T)));
15
+ Keys.push_back (FnvHash<ui64>(static_cast < const void *>(b) , (e - b) * sizeof (T)));
16
16
}
17
17
return true ;
18
18
}
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
+ #include < ydb-cpp-sdk/util/generic/algorithm.h>
4
+ #include < ydb-cpp-sdk/util/stream/output.h>
5
+
3
6
#include < src/library/lcs/lcs_via_lis.h>
4
7
5
- #include < ydb-cpp-sdk /util/generic/algorithm .h>
8
+ #include < src /util/string/split .h>
6
9
7
10
#include < string_view>
8
11
#include < span>
9
12
10
- #include < ydb-cpp-sdk/util/stream/output.h>
11
- #include < src/util/string/split.h>
12
-
13
13
namespace NDiff {
14
14
template <typename T>
15
15
struct TChunk {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ add_subdirectory(cgiparam)
4
4
add_subdirectory (charset )
5
5
add_subdirectory (containers )
6
6
add_subdirectory (coroutine )
7
+ add_subdirectory (dbg_output )
8
+ add_subdirectory (diff )
9
+ add_subdirectory (digest )
7
10
add_subdirectory (json )
8
11
add_subdirectory (login )
9
12
add_subdirectory (operation_id )
10
13
add_subdirectory (testing )
11
14
add_subdirectory (yql )
12
- add_subdirectory (digest )
13
- add_subdirectory (dbg_output )
Original file line number Diff line number Diff line change
1
+ add_ydb_test (NAME library-diff-ut
2
+ SOURCES
3
+ ut.cpp
4
+ INCLUDE_DIRS
5
+ ${YDB_SDK_SOURCE_DIR} /src/library/diff
6
+ LINK_LIBRARIES
7
+ library-diff
8
+ cpp-testing-unittest_main
9
+ )
Original file line number Diff line number Diff line change 5
5
using namespace NDiff ;
6
6
7
7
struct TDiffTester {
8
- std::stringStream Res;
8
+ TStringStream Res;
9
9
std::vector<TChunk<char >> Chunks;
10
10
11
11
std::string_view Special (const std::string_view& str) const {
You can’t perform that action at this time.
0 commit comments