diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-11-19 13:17:44 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-11-19 13:27:04 +0300 |
commit | 223625eed56ec3e2808c010eac46dba1c9a64d13 (patch) | |
tree | d0c85ad0f6b486e2f3aafec71cfe47ebc2931ac4 | |
parent | 7be946f684e606f5baa9e3a13401cc19b8ac9a3b (diff) | |
download | ydb-223625eed56ec3e2808c010eac46dba1c9a64d13.tar.gz |
Intermediate changes
commit_hash:1bcd4492a3f6a28a2be8e27b5660e98cc8e4c8d0
-rw-r--r-- | library/cpp/string_utils/ztstrbuf/ztstrbuf_ut.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/string_utils/ztstrbuf/ztstrbuf_ut.cpp b/library/cpp/string_utils/ztstrbuf/ztstrbuf_ut.cpp index d8215abdfa..b22d4bf216 100644 --- a/library/cpp/string_utils/ztstrbuf/ztstrbuf_ut.cpp +++ b/library/cpp/string_utils/ztstrbuf/ztstrbuf_ut.cpp @@ -12,7 +12,7 @@ Y_UNIT_TEST_SUITE(TZtStringBufTest) { Y_UNIT_TEST(Constness) { constexpr TZtStringBuf s0{"bar"}; static_assert(s0[0] == 'b'); - static_assert(s0[3] == '\0'); + static_assert(s0.data()[s0.size()] == '\0'); static_assert(s0.data()[2] == 'r'); UNIT_ASSERT_VALUES_EQUAL(s0, TString{"bar"}); } |