From 55a7f90e4cd31e9481cace8ee5dfd682c27e810e Mon Sep 17 00:00:00 2001
From: tobo <tobo@yandex-team.ru>
Date: Thu, 10 Feb 2022 16:47:27 +0300
Subject: Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2
 of 2.

---
 .../cpp/scheme/tests/fuzz_ops/ut/vm_parse_ut.cpp   | 70 +++++++++++-----------
 1 file changed, 35 insertions(+), 35 deletions(-)

(limited to 'library/cpp/scheme/tests/fuzz_ops')

diff --git a/library/cpp/scheme/tests/fuzz_ops/ut/vm_parse_ut.cpp b/library/cpp/scheme/tests/fuzz_ops/ut/vm_parse_ut.cpp
index 9a1a4fa738..ce3786a671 100644
--- a/library/cpp/scheme/tests/fuzz_ops/ut/vm_parse_ut.cpp
+++ b/library/cpp/scheme/tests/fuzz_ops/ut/vm_parse_ut.cpp
@@ -48,27 +48,27 @@ Y_UNIT_TEST_SUITE(TestParseNextAction) {
     Y_UNIT_TEST(TestParsePos) {
         DoTestParsePosFailure("", 1, 0);
 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x00"sv), 1, 0), 0); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x01"sv), 1, 0), 0); 
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x00"sv), 1, 0), 0);
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x01"sv), 1, 0), 0);
 
-        DoTestParsePosFailure(TStringBuf("\x02"sv), 1, 0); 
-        DoTestParsePosFailure(TStringBuf("\x03"sv), 2, 0); 
+        DoTestParsePosFailure(TStringBuf("\x02"sv), 1, 0);
+        DoTestParsePosFailure(TStringBuf("\x03"sv), 2, 0);
 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x02"sv), 2, 0), 1); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x03"sv), 2, 1), 0); 
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x02"sv), 2, 0), 1);
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x03"sv), 2, 1), 0);
 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x0E"sv), 8, 0), 7); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x0F"sv), 8, 7), 0); 
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x0E"sv), 8, 0), 7);
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(TStringBuf("\x0F"sv), 8, 7), 0);
 
         {
-            TVMState st{TStringBuf("\xDE\x7B"), 16, 0}; 
+            TVMState st{TStringBuf("\xDE\x7B"), 16, 0};
             UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(st), 15);
             UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(st), 15);
             UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(st), 15);
             UNIT_ASSERT(!ParsePos(st));
         }
         {
-            TVMState st{TStringBuf("\xFF\x7F"), 16, 15}; 
+            TVMState st{TStringBuf("\xFF\x7F"), 16, 15};
             UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(st), 0);
             UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(st), 0);
             UNIT_ASSERT_VALUES_EQUAL(DoTestParsePosSuccess(st), 0);
@@ -97,15 +97,15 @@ Y_UNIT_TEST_SUITE(TestParseNextAction) {
     Y_UNIT_TEST(TestParseRef) {
         DoTestParseRefFailure("", 1, 0);
 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseRefSuccess(TStringBuf("\x00"sv), 1, 0), std::make_pair((ui32)-1, TRef::T_CREATE_FRONT)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseRefSuccess(TStringBuf("\x01"sv), 1, 0), std::make_pair((ui32)-1, TRef::T_CREATE_BACK)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseRefSuccess(TStringBuf("\x0A"sv), 2, 0), std::make_pair(1u, TRef::T_REF__POS)); 
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseRefSuccess(TStringBuf("\x00"sv), 1, 0), std::make_pair((ui32)-1, TRef::T_CREATE_FRONT));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseRefSuccess(TStringBuf("\x01"sv), 1, 0), std::make_pair((ui32)-1, TRef::T_CREATE_BACK));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseRefSuccess(TStringBuf("\x0A"sv), 2, 0), std::make_pair(1u, TRef::T_REF__POS));
 
-        DoTestParseRefFailure(TStringBuf("\x12"), 1, 0); 
-        DoTestParseRefFailure(TStringBuf("\x03"sv), 1, 0); 
+        DoTestParseRefFailure(TStringBuf("\x12"), 1, 0);
+        DoTestParseRefFailure(TStringBuf("\x03"sv), 1, 0);
 
         {
-            TVMState st{TStringBuf("\x7A\x7D"), 16, 0}; 
+            TVMState st{TStringBuf("\x7A\x7D"), 16, 0};
             UNIT_ASSERT_VALUES_EQUAL(DoTestParseRefSuccess(st), std::make_pair(15u, TRef::T_REF__POS));
             UNIT_ASSERT_VALUES_EQUAL(DoTestParseRefSuccess(st), std::make_pair(15u, TRef::T_REF__POS));
             UNIT_ASSERT_VALUES_EQUAL(DoTestParseRefSuccess(st), std::make_pair((ui32)-1, TRef::T_CREATE_BACK));
@@ -134,14 +134,14 @@ Y_UNIT_TEST_SUITE(TestParseNextAction) {
     Y_UNIT_TEST(TestParseSrc) {
         DoTestParseSrcFailure("", 1, 0);
 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseSrcSuccess(TStringBuf("\x08"sv), 2, 0), std::make_pair(1u, TSrc::T_LREF__POS)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseSrcSuccess(TStringBuf("\x09"sv), 2, 0), std::make_pair(1u, TSrc::T_CREF__POS)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseSrcSuccess(TStringBuf("\x0A"sv), 2, 0), std::make_pair(1u, TSrc::T_RREF__POS)); 
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseSrcSuccess(TStringBuf("\x08"sv), 2, 0), std::make_pair(1u, TSrc::T_LREF__POS));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseSrcSuccess(TStringBuf("\x09"sv), 2, 0), std::make_pair(1u, TSrc::T_CREF__POS));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseSrcSuccess(TStringBuf("\x0A"sv), 2, 0), std::make_pair(1u, TSrc::T_RREF__POS));
 
-        DoTestParseSrcFailure(TStringBuf("\x03"sv), 1, 0); 
+        DoTestParseSrcFailure(TStringBuf("\x03"sv), 1, 0);
 
         {
-            TVMState st{TStringBuf("\x7A\x7D"), 16, 0}; 
+            TVMState st{TStringBuf("\x7A\x7D"), 16, 0};
             UNIT_ASSERT_VALUES_EQUAL(DoTestParseSrcSuccess(st), std::make_pair(15u, TSrc::T_RREF__POS));
             UNIT_ASSERT_VALUES_EQUAL(DoTestParseSrcSuccess(st), std::make_pair(15u, TSrc::T_RREF__POS));
             UNIT_ASSERT(!ParseSrc(st));
@@ -169,21 +169,21 @@ Y_UNIT_TEST_SUITE(TestParseNextAction) {
     Y_UNIT_TEST(TestParseDst) {
         DoTestParseDstFailure("", 1, 0);
 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x00"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_FRONT_LREF)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x01"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_FRONT_CREF)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x02"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_FRONT_RREF)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x03"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_BACK_LREF)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x04"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_BACK_CREF)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x05"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_BACK_RREF)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x26\x00"sv), 2, 0), std::make_pair(1u, TDst::T_LREF__POS)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x27\x00"sv), 2, 0), std::make_pair(1u, TDst::T_CREF__POS)); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x28\x00"sv), 2, 0), std::make_pair(1u, TDst::T_RREF__POS)); 
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x00"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_FRONT_LREF));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x01"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_FRONT_CREF));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x02"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_FRONT_RREF));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x03"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_BACK_LREF));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x04"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_BACK_CREF));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x05"sv), 1, 0), std::make_pair((ui32)-1, TDst::T_CREATE_BACK_RREF));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x26\x00"sv), 2, 0), std::make_pair(1u, TDst::T_LREF__POS));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x27\x00"sv), 2, 0), std::make_pair(1u, TDst::T_CREF__POS));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(TStringBuf("\x28\x00"sv), 2, 0), std::make_pair(1u, TDst::T_RREF__POS));
 
-        DoTestParseDstFailure(TStringBuf("\x06"sv), 1, 0); 
-        DoTestParseDstFailure(TStringBuf("\x09\x00"sv), 1, 0); 
+        DoTestParseDstFailure(TStringBuf("\x06"sv), 1, 0);
+        DoTestParseDstFailure(TStringBuf("\x09\x00"sv), 1, 0);
 
         {
-            TVMState st{TStringBuf("\x14\xE7\x09"sv), 16, 0}; 
+            TVMState st{TStringBuf("\x14\xE7\x09"sv), 16, 0};
             // 4=4
             UNIT_ASSERT_VALUES_EQUAL(DoTestParseDstSuccess(st), std::make_pair((ui32)-1, TDst::T_CREATE_BACK_CREF));
             // 4=8
@@ -217,8 +217,8 @@ Y_UNIT_TEST_SUITE(TestParseNextAction) {
     Y_UNIT_TEST(TestParsePath) {
         DoTestParsePathFailure("", 1, 0);
 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePathSuccess(TStringBuf("\x00"sv), 1, 0), TStringBuf("")); 
-        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePathSuccess(TStringBuf("\x21\x0C"sv), 1, 0), TStringBuf("a")); 
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePathSuccess(TStringBuf("\x00"sv), 1, 0), TStringBuf(""));
+        UNIT_ASSERT_VALUES_EQUAL(DoTestParsePathSuccess(TStringBuf("\x21\x0C"sv), 1, 0), TStringBuf("a"));
 
         DoTestParsePathFailure("\x22\x0C", 1, 0);
     }
-- 
cgit v1.2.3