mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
This commit is contained in:
parent
4ed6d0005b
commit
6b25046217
2 changed files with 27 additions and 0 deletions
18
autotest/File/File.cpp
Normal file
18
autotest/File/File.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
String p = GetExeDirFile("test.txt");
|
||||
FileOut out(p);
|
||||
DDUMP((bool)out);
|
||||
DDUMP((bool)out.IsError());
|
||||
FileOut out2(p);
|
||||
DDUMP((bool)out2);
|
||||
DDUMP((bool)out2.IsError());
|
||||
|
||||
FileIn in(GetExeDirFile("does_not_exist.file123"));
|
||||
DDUMP((bool)in);
|
||||
DDUMP(in.IsError());
|
||||
}
|
||||
9
autotest/File/File.upp
Normal file
9
autotest/File/File.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
File.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue