Skip to content

Commit

Permalink
Added test for File::CREATE
Browse files Browse the repository at this point in the history
  • Loading branch information
aslze committed Feb 11, 2025
1 parent 8c60e30 commit 88b49e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unittests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ ASL_TEST(File)
Array<String> lines = TextFile("lines.txt").lines();
ASL_ASSERT(lines[0] == line1);
ASL_ASSERT(lines[1] == line2);

#if !defined _MSC_VER || _MSC_VER >= 1900
File fileExc("lines.txt", File::WRITE | File::CREATE);
ASL_ASSERT(!fileExc);
tfile.remove();
ASL_ASSERT(fileExc.open("lines.txt", File::WRITE | File::CREATE));
#endif
}

ASL_TEST(IniFile)
Expand Down

0 comments on commit 88b49e9

Please sign in to comment.