mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-16 06:05:32 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@14709 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a61a5fc9de
commit
aa6df13ca1
1 changed files with 6 additions and 2 deletions
|
|
@ -98,13 +98,17 @@ CONSOLE_APP_MAIN
|
|||
}
|
||||
|
||||
auto LoadLog = [](const String& path) {
|
||||
String s = LoadFile(path);
|
||||
String s = Filter(LoadFile(path), [](int c) { return c == '\r' ? 0 : c; });
|
||||
return s.Mid(max(s.FindAfter("\n"), 0));
|
||||
};
|
||||
|
||||
String log = LoadLog(GetStdLogPath());
|
||||
String etalon = LoadLog(GetDataFile("Etalon.log"));
|
||||
|
||||
ASSERT(LoadLog(GetStdLogPath()) == LoadLog(GetDataFile("Etalon.log")));
|
||||
SaveFile(GetHomeDirFile("log.txt"), log);
|
||||
SaveFile(GetHomeDirFile("etalon.txt"), etalon);
|
||||
|
||||
ASSERT(log == etalon);
|
||||
|
||||
LOG("================ OK");
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue