diff options
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); } |