Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'coding/coding_tests/reader_test.cpp')
-rw-r--r--coding/coding_tests/reader_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/coding/coding_tests/reader_test.cpp b/coding/coding_tests/reader_test.cpp
index f4f073838c..a0892e6788 100644
--- a/coding/coding_tests/reader_test.cpp
+++ b/coding/coding_tests/reader_test.cpp
@@ -74,10 +74,12 @@ UNIT_TEST(FileReaderReadAsText)
FileWriter f(fName);
f.Write(fName, ARRAY_SIZE(fName) - 1);
}
+
{
- FileReader f(fName);
- string const text = f.ReadAsText();
+ string text;
+ FileReader(fName).ReadAsString(text);
TEST_EQUAL(text, fName, ());
}
+
FileWriter::DeleteFileX(fName);
}