mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@13395 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
985e71f922
commit
375b339cd8
2 changed files with 33 additions and 0 deletions
24
autotest/Uuid/Uuid.cpp
Normal file
24
autotest/Uuid/Uuid.cpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
StdLogSetup(LOG_COUT|LOG_FILE);
|
||||
Uuid id;
|
||||
id.New();
|
||||
DDUMP(id);
|
||||
String s = AsString(id);
|
||||
DDUMP(s);
|
||||
Uuid id2;
|
||||
id2 = ScanUuid(s);
|
||||
DDUMP(id2);
|
||||
ASSERT(id2 == id);
|
||||
id.New();
|
||||
DDUMP(id);
|
||||
s = FormatWithDashes(id);
|
||||
DDUMP(s);
|
||||
id2 = ScanUuid(s);
|
||||
ASSERT(id2 == id);
|
||||
LOG("=================== OK");
|
||||
}
|
||||
9
autotest/Uuid/Uuid.upp
Normal file
9
autotest/Uuid/Uuid.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
Uuid.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue