-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
37 lines (28 loc) · 962 Bytes
/
main.cpp
File metadata and controls
37 lines (28 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <fstream>
#include <filesystem>
extern void ConstCharTest();
extern void StringTest();
extern void FilePathTest();
extern void FileReadTest();
extern void FileWriteTest();
// ###############################################################################
/*
PRECAUTION ON WINDOWS / MSVC
Terminal output for Unicode chars is completely borked and cannot be realized easily (for the average user)
-> no testing in terminal
-> testing only as file output
Setting the /utf-8 encoding option for MSVC is strictly necessary
(otherwise MSVC tries to convert the Unicode encoded chars, double-conversion kicks in and everything is done...)
*/
int main(int argc, char* argv[])
{
ConstCharTest();
StringTest();
FilePathTest();
FileReadTest();
FileWriteTest();
// file testing
std::filesystem::path testfile("Test.txt");
std::ifstream filestream(testfile, std::ios_base::binary);
return 0;
}