diff options
author | vng <viktor.govako@gmail.com> | 2011-06-30 10:52:22 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:20:14 +0300 |
commit | 233683d1670e89076c82401e2693315046c7244e (patch) | |
tree | 3b0a9b71d53e853e663da18c362f6ba267b1bc85 /coding/coding_tests/reader_test.cpp | |
parent | f0587a9105b5519903f4f2c3dada1ee3572e7ce1 (diff) |
[Refactoring] Use Reader interface everywhere, when possible. Platform class now is a Reader factory.
Diffstat (limited to 'coding/coding_tests/reader_test.cpp')
-rw-r--r-- | coding/coding_tests/reader_test.cpp | 6 |
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); } |