aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authoraneporada <aneporada@ydb.tech>2022-12-30 00:13:10 +0300
committeraneporada <aneporada@ydb.tech>2022-12-30 00:13:10 +0300
commit1a05915a640ad390c50c0fb5f77e547cdb6d8b37 (patch)
tree907a11d80f714585172aa768717725a436e9d155 /library
parentf1382397c90c19e0615ada6d291febc0fc6dcf86 (diff)
downloadydb-1a05915a640ad390c50c0fb5f77e547cdb6d8b37.tar.gz
Preserve original predicate order in rest lambda
Diffstat (limited to 'library')
-rw-r--r--library/cpp/codecs/ut/codecs_ut.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/library/cpp/codecs/ut/codecs_ut.cpp b/library/cpp/codecs/ut/codecs_ut.cpp
index caf6089aef..9b985cb774 100644
--- a/library/cpp/codecs/ut/codecs_ut.cpp
+++ b/library/cpp/codecs/ut/codecs_ut.cpp
@@ -919,15 +919,9 @@ private:
}
{
- size_t insz = 0;
- size_t outsz = buff.Size();
-
for (ui32 i = 0; i < inlearn.size(); ++i) {
out.emplace_back();
c->Encode(AsStrBuf(inlearn[i]), out[i]);
-
- insz += inlearn[i].Size();
- outsz += out[i].Size();
}
TBuffer vecl;
@@ -948,16 +942,11 @@ private:
c = ICodec::Restore(&bin);
}
- size_t insz = 0;
- size_t outsz = buff.Size();
-
TBuffer out, in1;
for (ui32 i = 0; i < in.size(); ++i) {
out.Clear();
in1.Clear();
c->Encode(AsStrBuf(in[i]), out);
- insz += in[i].Size();
- outsz += out.Size();
c->Decode(AsStrBuf(out), in1);
UNIT_ASSERT_EQUAL_C(AsStrBuf(in[i]), AsStrBuf(in1),
PrintError(TStringBuf(in[i].data(), in[i].size()),