diff options
author | thegeorg <thegeorg@yandex-team.com> | 2022-10-20 12:16:22 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2022-10-20 12:16:22 +0300 |
commit | da5ee816c1598acf602c1c42845b544878400d34 (patch) | |
tree | 47c0acdeae9bbd5ceb1019b6c8e94ada327d7776 /library | |
parent | d37715ef865ba1c48ca505f8b96151ae6d417657 (diff) | |
download | ydb-da5ee816c1598acf602c1c42845b544878400d34.tar.gz |
Update contrib/libs/cxxsupp/openmp to 15.0.2
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/json/converter/converter.h | 2 | ||||
-rw-r--r-- | library/cpp/json/converter/ut/test_conversion.cpp | 20 |
2 files changed, 9 insertions, 13 deletions
diff --git a/library/cpp/json/converter/converter.h b/library/cpp/json/converter/converter.h index be86c31595..04f26b6946 100644 --- a/library/cpp/json/converter/converter.h +++ b/library/cpp/json/converter/converter.h @@ -1,3 +1,5 @@ +#pragma once + #include "library/cpp/json/writer/json_value.h" #include <limits> diff --git a/library/cpp/json/converter/ut/test_conversion.cpp b/library/cpp/json/converter/ut/test_conversion.cpp index c2c857835a..84027dda75 100644 --- a/library/cpp/json/converter/ut/test_conversion.cpp +++ b/library/cpp/json/converter/ut/test_conversion.cpp @@ -30,19 +30,15 @@ namespace NJson { static void TestEncoding(const TValues& values) { for (const auto& [serializedValue, value] : values) { - { - const auto encodedValue = TConverter<T>::Encode(value); - AssertJsonsEqual(encodedValue, serializedValue); - } + const auto encodedValue = TConverter<T>::Encode(value); + AssertJsonsEqual(encodedValue, serializedValue); } } static void TestDecoding(const TValues& values) { for (const auto& [serializedValue, value] : values) { - { - const auto decodedValue = TConverter<T>::Decode(ReadJsonFastTree(serializedValue)); - UNIT_ASSERT_EQUAL(decodedValue, value); - } + const auto decodedValue = TConverter<T>::Decode(ReadJsonFastTree(serializedValue)); + UNIT_ASSERT_EQUAL(decodedValue, value); } } @@ -59,11 +55,9 @@ namespace NJson { TestDecoding(values); for (const auto& [serializedValue, value] : values) { - { - const auto encodedValue = TConverter<T>::Encode(value); - const auto decodedValue = TConverter<T>::Decode(encodedValue); - UNIT_ASSERT_EQUAL(value, decodedValue); - } + const auto encodedValue = TConverter<T>::Encode(value); + const auto decodedValue = TConverter<T>::Decode(encodedValue); + UNIT_ASSERT_EQUAL(value, decodedValue); } } }; |