diff options
author | leo <[email protected]> | 2022-02-10 16:46:40 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:40 +0300 |
commit | 99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/system/filemap_ut.cpp | |
parent | 980edcd3304699edf9d4e4d6a656e585028e2a72 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/filemap_ut.cpp')
-rw-r--r-- | util/system/filemap_ut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/filemap_ut.cpp b/util/system/filemap_ut.cpp index c53b874586a..73f109dc880 100644 --- a/util/system/filemap_ut.cpp +++ b/util/system/filemap_ut.cpp @@ -18,7 +18,7 @@ Y_UNIT_TEST_SUITE(TFileMapTest) { char data[] = "abcdefgh"; TFile file(FileName_, CreateAlways | WrOnly); - file.Write(static_cast<void*>(data), sizeof(data)); + file.Write(static_cast<void*>(data), sizeof(data)); file.Close(); { @@ -218,7 +218,7 @@ Y_UNIT_TEST_SUITE(TFileMapTest) { size_t sz = sizeof(data) / sizeof(data[0]); TFile file(FileName_, CreateAlways | WrOnly); - file.Write(static_cast<void*>(data), sizeof(data)); + file.Write(static_cast<void*>(data), sizeof(data)); file.Close(); mappedArray.Init(FileName_); @@ -253,8 +253,8 @@ Y_UNIT_TEST_SUITE(TFileMapTest) { // actual test end file = TFile(FileName_, WrOnly); - file.Seek(0, sEnd); - file.Write("x", 1); + file.Seek(0, sEnd); + file.Write("x", 1); file.Close(); bool caught = false; @@ -279,7 +279,7 @@ Y_UNIT_TEST_SUITE(TFileMapTest) { UNIT_ASSERT(mappedArray.begin() + sz == mappedArray.end()); for (size_t i = 0; i < sz; ++i) { - mappedArray[i] = (ui32)i; + mappedArray[i] = (ui32)i; } for (size_t i = 0; i < sz; ++i) { UNIT_ASSERT(mappedArray[i] == i); @@ -287,7 +287,7 @@ Y_UNIT_TEST_SUITE(TFileMapTest) { TMappedArray<ui32> mappedArray2(1000); mappedArray.swap(mappedArray2); - UNIT_ASSERT(mappedArray.size() == 1000 && mappedArray2.size() == sz); + UNIT_ASSERT(mappedArray.size() == 1000 && mappedArray2.size() == sz); } Y_UNIT_TEST(TestMemoryMap) { |